From cc6ed285e58be9c3c16ab2f2bc34d61687dfc3ff Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Mon, 20 Jul 2015 15:48:53 -0400 Subject: [PATCH] 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 Reviewed-by: Russ Cox --- src/runtime/mgc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0