]> Cypherpunks repositories - gostls13.git/commit
runtime: zero entire bitmap for object, even past dead marker
authorRuss Cox <rsc@golang.org>
Fri, 8 May 2015 02:39:57 +0000 (22:39 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 11 May 2015 16:37:46 +0000 (16:37 +0000)
commit266a842f5525fa8009f0c97b6d9967bb59fea349
tree5152f1d4b238a49d3a4e5e6b9197d53bde65c5ae
parente375ca2a25ba08806e2dbc060a79ef79849d688e
runtime: zero entire bitmap for object, even past dead marker

We want typedmemmove to use the heap bitmap to determine
where pointers are, instead of reinterpreting the type information.
The heap bitmap is simpler to access.

In general, typedmemmove will need to be able to look up the bits
for any word and find valid pointer information, so fill even after the
dead marker. Not filling after the dead marker was an optimization
I introduced only a few days ago, when reintroducing the dead marker
code. At the time I said it probably wouldn't last, and it didn't.

Change-Id: I6ba01bff17ddee1ff429f454abe29867ec60606e
Reviewed-on: https://go-review.googlesource.com/9885
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/mbitmap.go