diff options
| author | Austin Clements <austin@google.com> | 2017-06-30 16:51:07 -0400 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2017-07-03 14:08:01 +0000 |
| commit | a89e6be5e409960da744626c27e24c130aa6e076 (patch) | |
| tree | dfa23ab35c047b25d3b1fb55f3253ead9caba5ce /src/os/exec/exec.go | |
| parent | 14b07dfc7ec20df9d74bb69290571cf6fd2fe2fc (diff) | |
| download | go-a89e6be5e409960da744626c27e24c130aa6e076.tar.xz | |
runtime: clean up mheap.allocLarge
mheap.allocLarge just calls bestFitTreap and is the only caller of
bestFitTreap. Flatten these into a single function. Also fix their
comments: allocLarge claims to return exactly npages but can in fact
return a larger span, and h.freelarge is not in fact indexed by span
start address.
Change-Id: Ia20112bdc46643a501ea82ea77c58596bc96f125
Reviewed-on: https://go-review.googlesource.com/47315
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
Diffstat (limited to 'src/os/exec/exec.go')
0 files changed, 0 insertions, 0 deletions
