diff options
| author | Austin Clements <austin@google.com> | 2015-01-09 14:00:40 -0500 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2015-01-12 16:36:50 +0000 |
| commit | 654297cb0233d0af84c8d5dbf18f46b1bcdcee85 (patch) | |
| tree | abf2c0753aa4d2dc3862ac465515071c647a6944 /src/runtime/runtime1.go | |
| parent | 86fdcbedbcb868f7f2e8274d2b50f0ea34043c47 (diff) | |
| download | go-654297cb0233d0af84c8d5dbf18f46b1bcdcee85.tar.xz | |
runtime: add GODEBUG=gccheckmark=0/1
Previously, gccheckmark could only be enabled or disabled by calling
runtime.GCcheckmarkenable/GCcheckmarkdisable. This was a necessary
hack because GODEBUG was broken.
Now that GODEBUG works again, move control over gccheckmark to a
GODEBUG variable and remove these runtime functions. Currently,
gccheckmark is enabled by default (and will probably remain so for
much of the 1.5 development cycle).
Change-Id: I2bc6f30c21b795264edf7dbb6bd7354b050673ab
Reviewed-on: https://go-review.googlesource.com/2603
Reviewed-by: Rick Hudson <rlh@golang.org>
Diffstat (limited to 'src/runtime/runtime1.go')
| -rw-r--r-- | src/runtime/runtime1.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/runtime1.go b/src/runtime/runtime1.go index e6510a8aa3..6056a8dd7e 100644 --- a/src/runtime/runtime1.go +++ b/src/runtime/runtime1.go @@ -317,6 +317,7 @@ var debug struct { scheddetail int32 schedtrace int32 wbshadow int32 + gccheckmark int32 } var dbgvars = []dbgVar{ @@ -329,9 +330,13 @@ var dbgvars = []dbgVar{ {"scheddetail", &debug.scheddetail}, {"schedtrace", &debug.schedtrace}, {"wbshadow", &debug.wbshadow}, + {"gccheckmark", &debug.gccheckmark}, } func parsedebugvars() { + // gccheckmark is enabled by default for the 1.5 dev cycle + debug.gccheckmark = 1 + for p := gogetenv("GODEBUG"); p != ""; { field := "" i := index(p, ",") |
