]> Cypherpunks repositories - gostls13.git/commit
runtime: fix potential memory corruption
authorDmitriy Vyukov <dvyukov@google.com>
Mon, 24 Feb 2014 16:53:20 +0000 (20:53 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Mon, 24 Feb 2014 16:53:20 +0000 (20:53 +0400)
commit6e612ae0f5b527660f0e1ae497d0ad8fbb6953c2
tree212017d779cb8b45581c8a6f206528daf0c45b1c
parent69257d17fe1fbd81e7f720f1a7f4e4f003997ea3
runtime: fix potential memory corruption
Reinforce the guarantee that MSpan_EnsureSwept actually ensures that the span is swept.
I have not observed crashes related to this, but I do not see why it can't crash as well.

LGTM=rsc
R=golang-codereviews
CC=golang-codereviews, khr, rsc
https://golang.org/cl/67990043
src/pkg/runtime/mgc0.c
src/pkg/runtime/mheap.c