From 654297cb0233d0af84c8d5dbf18f46b1bcdcee85 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Fri, 9 Jan 2015 14:00:40 -0500 Subject: 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 --- src/runtime/malloc.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/runtime/malloc.go') diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go index bc14d2222d..fa59ce41e4 100644 --- a/src/runtime/malloc.go +++ b/src/runtime/malloc.go @@ -611,14 +611,6 @@ func gcwork(force int32) { } } -func GCcheckmarkenable() { - systemstack(gccheckmarkenable_m) -} - -func GCcheckmarkdisable() { - systemstack(gccheckmarkdisable_m) -} - // gctimes records the time in nanoseconds of each phase of the concurrent GC. type gctimes struct { sweepterm int64 // stw -- cgit v1.3