1
0
mirror of https://github.com/golang/go synced 2024-11-23 13:00:07 -07:00

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
This commit is contained in:
Russ Cox 2014-09-24 14:18:25 -04:00
parent 7283e08cbf
commit 6f219e8b84

View File

@ -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