aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2015-07-20 15:48:53 -0400
committerAustin Clements <austin@google.com>2015-07-27 17:45:22 +0000
commitcc6ed285e58be9c3c16ab2f2bc34d61687dfc3ff (patch)
treee74c2b57bf4ab51befb89cd355494a03f51295cb /src
parentea085414ef3bee6f9a7d5f4daed5d24a744c1ab9 (diff)
downloadgo-cc6ed285e58be9c3c16ab2f2bc34d61687dfc3ff.tar.xz
runtime: remove # from gctrace line
Whenever someone pastes gctrace output into GitHub, it helpfully turns the GC cycle number into a link to some unrelated issue. Prevent this by removing the pound before the cycle number. The fact that this is a cycle number is probably more obvious at a glance than most of the other numbers. Change-Id: Ifa5fc7fe6c715eac50e639f25bc36c81a132ffea Reviewed-on: https://go-review.googlesource.com/12413 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/runtime/mgc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mgc.go b/src/runtime/mgc.go
index e0818d6441..8731dd8511 100644
--- a/src/runtime/mgc.go
+++ b/src/runtime/mgc.go
@@ -1136,7 +1136,7 @@ func gc(mode int) {
var sbuf [24]byte
printlock()
- print("gc #", memstats.numgc,
+ print("gc ", memstats.numgc,
" @", string(itoaDiv(sbuf[:], uint64(tSweepTerm-runtimeInitTime)/1e6, 3)), "s ",
util, "%: ")
prev := tSweepTerm