]> Cypherpunks repositories - gostls13.git/commit
runtime: fix various contiguous bitmap assumptions
authorAustin Clements <austin@google.com>
Sat, 9 Dec 2017 03:24:59 +0000 (22:24 -0500)
committerAustin Clements <austin@google.com>
Thu, 15 Feb 2018 21:12:17 +0000 (21:12 +0000)
commitf61057c497e9ccb88dae093778d97aeee941af13
tree4192f575e03e42c259a5b3872e27bfc8df55680b
parent29e9c4d4a4064fcd5edcb47d4782bd96082a068e
runtime: fix various contiguous bitmap assumptions

There are various places that assume the heap bitmap is contiguous and
scan it sequentially. We're about to split up the heap bitmap. This
commit modifies all of these except heapBitsSetType to use the
heapBits abstractions so they can transparently switch to a
discontiguous bitmap.

Updates #10460. This is a step toward supporting sparse heaps.

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