• Austin Clements's avatar
    runtime: remove GODEBUG=gcrescanstacks=1 mode · 198440cc
    Austin Clements authored
    Currently, setting GODEBUG=gcrescanstacks=1 enables a debugging mode
    where the garbage collector re-scans goroutine stacks during mark
    termination. This was introduced in Go 1.8 to debug the hybrid write
    barrier, but I don't think we ever used it.
    
    Now it's one of the last sources of mark work during mark termination.
    This CL removes it.
    
    Updates #26903. This is preparation for unifying STW GC and concurrent
    GC.
    
    Updates #17503.
    
    Change-Id: I6ae04d3738aa9c448e6e206e21857a33ecd12acf
    Reviewed-on: https://go-review.googlesource.com/c/134777
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRick Hudson <rlh@golang.org>
    198440cc
runtime1.go 11 KB