]> Cypherpunks repositories - gostls13.git/commit
runtime: remove GODEBUG=gcrescanstacks=1 mode
authorAustin Clements <austin@google.com>
Thu, 16 Aug 2018 15:47:36 +0000 (11:47 -0400)
committerAustin Clements <austin@google.com>
Tue, 2 Oct 2018 20:35:27 +0000 (20:35 +0000)
commit198440cc3d3453d349fbc7894a5d91dd7b16e6a0
tree130f5c78b2cd3fa41cc69a7865ae593c28c60495
parentecc365960ba7ff72f650b32190f40a1f1b6ff992
runtime: remove GODEBUG=gcrescanstacks=1 mode

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: Rick Hudson <rlh@golang.org>
src/runtime/extern.go
src/runtime/mgc.go
src/runtime/mgcmark.go
src/runtime/runtime1.go