aboutsummaryrefslogtreecommitdiff
path: root/src/sync
diff options
context:
space:
mode:
authorKai Dong <dokia2357@gmail.com>2019-04-19 03:23:23 +0000
committerAustin Clements <austin@google.com>2019-04-19 16:15:36 +0000
commit5ccaf2c6ade286ca30c345ae1cfa0560dc02fedd (patch)
tree2867d03cd9c1dd34ec486e6e04f6aa4eb2c16f90 /src/sync
parent4aeac68c92c5b79d098aaa7fba168d4c943541ba (diff)
downloadgo-5ccaf2c6ade286ca30c345ae1cfa0560dc02fedd.tar.xz
sync: update comment
Comment update. Change-Id: If0d054216f9953f42df04647b85c38008b85b026 GitHub-Last-Rev: 133b4670be6dd1c94d16361c3a7a4bbdf8a355ab GitHub-Pull-Request: golang/go#31539 Reviewed-on: https://go-review.googlesource.com/c/go/+/172700 Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/sync')
-rw-r--r--src/sync/pool.go2
1 files changed, 1 insertions, 1 deletions
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).