• Austin Clements's avatar
    runtime: remove g.gcscanvalid · 8c586157
    Austin Clements authored
    Currently, gcscanvalid is used to resolve a race between attempts to
    scan a stack. Now that there's a clear owner of the stack scan
    operation, there's no longer any danger of racing or attempting to
    scan a stack more than once, so this CL eliminates gcscanvalid.
    
    I double-checked my reasoning by first adding a throw if gcscanvalid
    was set in scanstack and verifying that all.bash still passed.
    
    For #10958, #24543.
    Fixes #24363.
    
    Change-Id: I76794a5fcda325ed7cfc2b545e2a839b8b3bc713
    Reviewed-on: https://go-review.googlesource.com/c/go/+/201139
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarCherry Zhang <cherryyz@google.com>
    8c586157
mgcmark.go 41.5 KB