• Dmitriy Vyukov's avatar
    runtime: more reliable preemption · 5887f142
    Dmitriy Vyukov authored
    Currently preemption signal g->stackguard0==StackPreempt
    can be lost if it is received when preemption is disabled
    (e.g. m->lock!=0). This change duplicates the preemption
    signal in g->preempt and restores g->stackguard0
    when preemption is enabled.
    Update #543.
    
    R=golang-dev, rsc
    CC=golang-dev
    https://golang.org/cl/10792043
    5887f142
runtime.h 28.6 KB