From 133b4670be6dd1c94d16361c3a7a4bbdf8a355ab Mon Sep 17 00:00:00 2001 From: Kai Dong Date: Thu, 18 Apr 2019 20:17:43 +0800 Subject: [PATCH] Update pool.go Comment update. --- src/sync/pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sync/pool.go b/src/sync/pool.go index f58fdd46bc..ca7afdb12f 100644 --- a/src/sync/pool.go +++ b/src/sync/pool.go @@ -194,7 +194,7 @@ func (p *Pool) getSlow(pid int) interface{} { // Caller must call runtime_procUnpin() when done with the pool. func (p *Pool) pin() (*poolLocal, int) { pid := runtime_procPin() - // In pinSlow we store to localSize and then to local, here we load in opposite order. + // In pinSlow we store to local and then to localSize, here we load in opposite order. // Since we've disabled preemption, GC cannot happen in between. // Thus here we must observe local at least as large localSize. // We can observe a newer/larger local, it is fine (we must observe its zero-initialized-ness).