]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.4] runtime: don't fail if we find a pointer to an invalid span...
authorKeith Randall <khr@golang.org>
Sat, 14 Feb 2015 23:46:36 +0000 (15:46 -0800)
committerAndrew Gerrand <adg@golang.org>
Tue, 17 Feb 2015 23:37:56 +0000 (23:37 +0000)
commite4acac3dfb97479e339fbf587af488bd6886cf09
treec99de3c87fdf0f352ad47109a24de2e2c9c1d6a4
parent3e5977f99d3e77a326ee1cef711c3e099285fba8
[release-branch.go1.4] runtime: don't fail if we find a pointer to an invalid span on 32 bit

The 32-bit heap may have holes in it.  Pointers to (non-heap) objects
in those holes shouldn't cause the GC to throw.

This change is somewhat of a band-aid fix for 1.4.2.  We should do
a more thorough fix for tip (keep track of the holes in the heap
with special MSpans, say).

Update #9872

Change-Id: Ife9ba27b77ae6ac5a6792d249c68893b3df62134
Reviewed-on: https://go-review.googlesource.com/4920
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/mgc0.c