]> Cypherpunks repositories - gostls13.git/commit
runtime: update gctrace line for new garbage collector
authorAustin Clements <austin@google.com>
Thu, 26 Mar 2015 22:48:42 +0000 (18:48 -0400)
committerAustin Clements <austin@google.com>
Thu, 2 Apr 2015 23:37:06 +0000 (23:37 +0000)
commit24ee948269580391dda0e3ec50136d25a5778280
tree157b8bf40b7526cac395dc372d6ef53aedae2f6d
parent28f33b4a7071870e5ee8b3f87170bbdf9c08981e
runtime: update gctrace line for new garbage collector

GODEBUG=gctrace=1 turns on a per-GC cycle trace line. The current line
is left over from the STW garbage collector and includes a lot of
information that is no longer meaningful for the concurrent GC and
doesn't include a lot of information that is important.

Replace this line with a new line designed for the new garbage
collector.

This new line is focused more on helping the user understand the
impact of the garbage collector on their program and less on telling
us, the runtime developers, everything that's happening inside
GC. It's designed to fit in 80 columns and intentionally omit some
potentially useful things that were in the old line. We might want a
"verbose" mode that adds information for us.

We'll be able to further simplify the line once we eliminate the STW
around enabling the write barrier. Then we'll have just one STW phase,
one concurrent phase, and one more STW phase, so we'll be able to
reduce the number of times from five to three.

Change-Id: Icc30939fe4576fb4491b4eac811649395727aa2a
Reviewed-on: https://go-review.googlesource.com/8208
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/mgc.go
src/runtime/proc.go