]> Cypherpunks repositories - gostls13.git/commit
runtime: fix spans corruption
authorDmitriy Vyukov <dvyukov@google.com>
Fri, 14 Mar 2014 19:25:48 +0000 (23:25 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Fri, 14 Mar 2014 19:25:48 +0000 (23:25 +0400)
commit8d321625fdae77d7e4a8c1681fe90bd893b9cdd2
tree4bc303a3b7d46b1039acc7e5486854033a6a6a11
parentf210fd1fa905ad381c8cb358ed7c004ec582f90f
runtime: fix spans corruption
The problem was that spans end up in wrong lists after split
(e.g. in h->busy instead of h->central->empty).
Also the span can be non-swept before split,
I don't know what it can cause, but it's safer to operate on swept spans.
Fixes #7544.

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