diff options
author | Austin Clements <austin@google.com> | 2015-08-26 13:54:26 -0400 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2015-08-30 16:06:55 +0000 |
commit | 3bfc9df21aefe486de2c8a620a36fac178650a8c (patch) | |
tree | f6748a7e6d6021abde23332d0f977474c43a2065 /src/runtime/extern.go | |
parent | e2bb03f175e162cef9a6639d36483cf5e8be5306 (diff) | |
download | go-3bfc9df21aefe486de2c8a620a36fac178650a8c.tar.gz go-3bfc9df21aefe486de2c8a620a36fac178650a8c.zip |
runtime: add GODEBUG for stack barriers at every frame
Currently enabling the debugging mode where stack barriers are
installed at every frame requires recompiling the runtime. However,
this is potentially useful for field debugging and for runtime tests,
so make this mode a GODEBUG.
Updates #12238.
Change-Id: I6fb128f598b19568ae723a612e099c0ed96917f5
Reviewed-on: https://go-review.googlesource.com/13947
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/runtime/extern.go')
-rw-r--r-- | src/runtime/extern.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/extern.go b/src/runtime/extern.go index d346362773..cdb66ba24e 100644 --- a/src/runtime/extern.go +++ b/src/runtime/extern.go @@ -47,6 +47,9 @@ It is a comma-separated list of name=val pairs setting these named variables: that allow the garbage collector to avoid repeating a stack scan during the mark termination phase. + gcstackbarrierall: setting gcstackbarrierall=1 installs stack barriers + in every stack frame, rather than in exponentially-spaced frames. + gcstoptheworld: setting gcstoptheworld=1 disables concurrent garbage collection, making every garbage collection a stop-the-world event. Setting gcstoptheworld=2 also disables concurrent sweeping after the garbage collection finishes. |