Skip to content

Commit 38d9b2a

Browse files
committed
runtime: diagnose invalid pointers during GC
For #9880. Let's see what breaks. Change-Id: Ic8b99a604e60177a448af5f7173595feed607875 Reviewed-on: https://go-review.googlesource.com/10818 Reviewed-by: Austin Clements <[email protected]> Run-TryBot: Austin Clements <[email protected]>
1 parent 7feb424 commit 38d9b2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/mbitmap.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func heapBitsForObject(p uintptr) (base uintptr, hbits heapBits, s *mspan) {
201201
// The following ensures that we are rigorous about what data
202202
// structures hold valid pointers.
203203
// TODO(rsc): Check if this still happens.
204-
if false {
204+
if true {
205205
// Still happens sometimes. We don't know why.
206206
printlock()
207207
print("runtime:objectstart Span weird: p=", hex(p), " k=", hex(k))

0 commit comments

Comments
 (0)