From 4e7724b2db4163f88a542fa0ff0dc72dfc5698de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 6 Apr 2017 13:18:45 +0100 Subject: [PATCH] runtime: remove unused parameter from bestFitTreap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This code was added recently, and it doesn't seem like the parameter will be useful in the near future. Change-Id: I5d64dadb6820c159b588262ab90df2461b5fdf04 Reviewed-on: https://go-review.googlesource.com/39692 Run-TryBot: Daniel Martí TryBot-Result: Gobot Gobot Reviewed-by: Rick Hudson --- src/runtime/mheap.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/mheap.go b/src/runtime/mheap.go index df621549aa..d4a939830b 100644 --- a/src/runtime/mheap.go +++ b/src/runtime/mheap.go @@ -750,13 +750,13 @@ func (h *mheap) isLargeSpan(npages uintptr) bool { // Allocate a span of exactly npage pages from the treap of large spans. func (h *mheap) allocLarge(npage uintptr) *mspan { - return bestFitTreap(&h.freelarge, npage, nil) + return bestFitTreap(&h.freelarge, npage) } // Search treap for smallest span with >= npage pages. // If there are multiple smallest spans, select the one // with the earliest starting address. -func bestFitTreap(treap *mTreap, npage uintptr, best *mspan) *mspan { +func bestFitTreap(treap *mTreap, npage uintptr) *mspan { return treap.remove(npage) }