]> Cypherpunks repositories - gostls13.git/commit
runtime: make mspan.isFree do what's on the tin
authorAustin Clements <austin@google.com>
Sun, 2 Oct 2016 22:46:02 +0000 (18:46 -0400)
committerAustin Clements <austin@google.com>
Mon, 24 Oct 2016 02:33:39 +0000 (02:33 +0000)
commit3cbfcaa4ba898faba516fbb9f3debf4ceac1a557
tree87104a5e6f223ea579470615804631731e29e55e
parentbf9c71cb434a730679f54a3a87c2e9e36ec400d0
runtime: make mspan.isFree do what's on the tin

Currently mspan.isFree technically returns whether the object was not
allocated *during this cycle*. Fix it so it actually returns whether
or not the object is allocated so the method is more generally useful
(especially for debugging).

It has one caller, which is carefully written to be insensitive to
this distinction, but this lets us simplify this caller.

Change-Id: I9d79cf784a56015e434961733093c1d8d03fc091
Reviewed-on: https://go-review.googlesource.com/30145
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/heapdump.go
src/runtime/mbitmap.go