]> Cypherpunks repositories - gostls13.git/commit
runtime: tidy mheap.freeSpan
authorAustin Clements <austin@google.com>
Tue, 25 Sep 2018 19:44:27 +0000 (15:44 -0400)
committerAustin Clements <austin@google.com>
Tue, 9 Oct 2018 16:43:18 +0000 (16:43 +0000)
commit3f86d7cc6762a5f6745cdcda4bd50031bfafc92f
tree82f29ccede14e5e51898c173657b2692962db642
parent5440bfc2ea8c0a4c78d5161605659c07ea10e37a
runtime: tidy mheap.freeSpan

freeSpan currently takes a mysterious "acct int32" argument. This is
really just a boolean and actually just needs to match the "large"
argument to alloc in order to balance out accounting.

To make this clearer, replace acct with a "large bool" argument that
must match the call to mheap.alloc.

Change-Id: Ibc81faefdf9f0583114e1953fcfb362e9c3c76de
Reviewed-on: https://go-review.googlesource.com/c/138655
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/mcentral.go
src/runtime/mgcsweep.go
src/runtime/mheap.go