• Dmitriy Vyukov's avatar
    runtime: delete unnecessary confusing code · d3be3daa
    Dmitriy Vyukov authored
    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
    d3be3daa
mgc0.c 76.1 KB