From: Russ Cox Date: Wed, 24 Sep 2014 18:18:25 +0000 (-0400) Subject: runtime: fix LastGC comment X-Git-Tag: go1.4beta1~316 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6f219e8b847c731a6c0d3695b74f312a1ea705a5;p=gostls13.git runtime: fix LastGC comment I have no idea what "absolute time" means. LGTM=dvyukov, r R=r, dvyukov CC=golang-codereviews https://golang.org/cl/144320043 --- diff --git a/src/runtime/mem.go b/src/runtime/mem.go index b3c216f18e..438f22ec09 100644 --- a/src/runtime/mem.go +++ b/src/runtime/mem.go @@ -41,8 +41,8 @@ type MemStats struct { OtherSys uint64 // other system allocations // Garbage collector statistics. - NextGC uint64 // next run in HeapAlloc time (bytes) - LastGC uint64 // last run in absolute time (ns) + NextGC uint64 // next collection will happen when HeapAlloc ≥ this amount + LastGC uint64 // end time of last collection (nanoseconds since 1970) PauseTotalNs uint64 PauseNs [256]uint64 // circular buffer of recent GC pause times, most recent at [(NumGC+255)%256] NumGC uint32