aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/extern.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2018-08-15 16:19:21 -0400
committerAustin Clements <austin@google.com>2018-10-02 20:35:17 +0000
commitedc2d17086a6d21039f45506459cf1b9f40eb95c (patch)
tree5e898fa5f16263a69a9c21a5407d8c20457c815c /src/runtime/extern.go
parent9c634ea889fdfa41aec9183bd5693c155374ba76 (diff)
downloadgo-edc2d17086a6d21039f45506459cf1b9f40eb95c.tar.gz
go-edc2d17086a6d21039f45506459cf1b9f40eb95c.zip
runtime: remove GODEBUG=gctrace=2 mode
It turns out if you set GODEBUG=gctrace=2, it enables an obscure debugging mode that, in addition to printing gctrace statistics, also does a second STW GC following each regular GC. This debugging mode has long since lost its value (you could maybe use it to analyze floating garbage, except that we don't print the gctrace line on the second GC), and it interferes substantially with the operation of the GC by messing up the statistics used to schedule GCs. It's also a source of mark termination GC work when we're in concurrent GC mode, so it's going to interfere with eliminating mark 2. And it's going to get in the way of unifying STW and concurrent GC. This CL removes this debugging mode. Updates #26903. This is preparation for eliminating mark 2 and unifying STW GC and concurrent GC. Change-Id: Ib5bce05d8c4d5b6559c89a65165d49532165df07 Reviewed-on: https://go-review.googlesource.com/c/134316 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rick Hudson <rlh@golang.org>
Diffstat (limited to 'src/runtime/extern.go')
-rw-r--r--src/runtime/extern.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/runtime/extern.go b/src/runtime/extern.go
index 1773c8fe7e..3be1eca09c 100644
--- a/src/runtime/extern.go
+++ b/src/runtime/extern.go
@@ -61,8 +61,7 @@ It is a comma-separated list of name=val pairs setting these named variables:
gctrace: setting gctrace=1 causes the garbage collector to emit a single line to standard
error at each collection, summarizing the amount of memory collected and the
- length of the pause. Setting gctrace=2 emits the same summary but also
- repeats each collection. The format of this line is subject to change.
+ length of the pause. The format of this line is subject to change.
Currently, it is:
gc # @#s #%: #+#+# ms clock, #+#/#/#+# ms cpu, #->#-># MB, # MB goal, # P
where the fields are as follows: