]> Cypherpunks repositories - gostls13.git/commit
runtime: delete unnecessary confusing code
authorDmitriy Vyukov <dvyukov@google.com>
Thu, 3 Jul 2014 18:58:42 +0000 (22:58 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Thu, 3 Jul 2014 18:58:42 +0000 (22:58 +0400)
commitd3be3daafef4b614fc676c807956047976848c7e
tree5b4d096a0d74c67da43a94a65f7614b0425fc774
parent2ec3a0a72fbe2cdd4affc67383ae67c503e7469b
runtime: delete unnecessary confusing code
The code in GC that handles gp->gobuf.ctxt is wrong,
because it does not mark the ctxt object itself,
if just queues the ctxt object for scanning.
So the ctxt object can be collected as garbage.
However, Gobuf.ctxt is void*, so it's always marked and
scanned through G.

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