aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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)
}