• Austin Clements's avatar
    runtime: make mspan.isFree do what's on the tin · 3cbfcaa4
    Austin Clements authored
    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: 's avatarRick Hudson <rlh@golang.org>
    3cbfcaa4
mbitmap.go 62.2 KB