From 45baff61e37cb8ac497ca395d8da3f3e87601bb2 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Wed, 5 Oct 2016 12:31:00 -0400 Subject: [PATCH] runtime: expand comment on work.spans Change-Id: I4b8a6f5d9bc5aba16026d17f99f3512dacde8d2d Reviewed-on: https://go-review.googlesource.com/30534 Run-TryBot: Austin Clements TryBot-Result: Gobot Gobot Reviewed-by: Rick Hudson --- src/runtime/mgc.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/runtime/mgc.go b/src/runtime/mgc.go index f44a4fbb03..6be1ffda99 100644 --- a/src/runtime/mgc.go +++ b/src/runtime/mgc.go @@ -815,7 +815,9 @@ var work struct { // mode is the concurrency mode of the current GC cycle. mode gcMode - // Copy of mheap.allspans for marker or sweeper. + // Snapshot of mheap.allspans for marker or sweeper created by + // gcCopySpans. Unlike allspans, this does not change except + // at controlled GC transition points. spans []*mspan // totaltime is the CPU nanoseconds spent in GC since the -- 2.48.1