aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Martí <mvdan@mvdan.cc>2017-04-06 13:18:45 +0100
committerBrad Fitzpatrick <bradfitz@golang.org>2017-04-06 17:20:43 +0000
commit4e7724b2db4163f88a542fa0ff0dc72dfc5698de (patch)
tree2c1504276837df066628c833f34183d41827bd67 /src
parent5c359d80837cd7f546f2d709dc270099b5dd5fe0 (diff)
downloadgo-4e7724b2db4163f88a542fa0ff0dc72dfc5698de.tar.xz
runtime: remove unused parameter from bestFitTreap
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í <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rick Hudson <rlh@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/runtime/mheap.go4
1 files 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)
}