From 711a1642679ee0beac7501902c6f400946361171 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Thu, 23 Apr 2015 18:55:23 -0400 Subject: [PATCH] runtime: fix some out-of-date comments bgMarkCount no longer exists. Change-Id: I3aa406fdccfca659814da311229afbae55af8304 Reviewed-on: https://go-review.googlesource.com/9297 Reviewed-by: Rick Hudson --- src/runtime/mgc.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/runtime/mgc.go b/src/runtime/mgc.go index 3b42481863..db7f859ddf 100644 --- a/src/runtime/mgc.go +++ b/src/runtime/mgc.go @@ -485,8 +485,7 @@ func (c *gcControllerState) findRunnable(_p_ *p) *g { // No work to be done right now. This can happen at // the end of the mark phase when there are still // assists tapering off. Don't bother running - // background mark because it'll just return and - // bgMarkCount might hover above zero. + // background mark because it'll just return immediately. return nil } @@ -515,7 +514,7 @@ func (c *gcControllerState) findRunnable(_p_ *p) *g { // slice, would it be under the utilization goal? // // TODO(austin): We could fast path this and basically - // eliminate contention on c.bgMarkCount by + // eliminate contention on c.fractionalMarkWorkersNeeded by // precomputing the minimum time at which it's worth // next scheduling the fractional worker. Then Ps // don't have to fight in the window where we've -- 2.48.1