]> Cypherpunks repositories - gostls13.git/commitdiff
sync: update comment
authorKai Dong <dokia2357@gmail.com>
Fri, 19 Apr 2019 03:23:23 +0000 (03:23 +0000)
committerAustin Clements <austin@google.com>
Fri, 19 Apr 2019 16:15:36 +0000 (16:15 +0000)
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>
src/sync/pool.go

index f58fdd46bc8e81c5c6cc8db09f0f025be7991318..ca7afdb12ff780d5d25e8046ac2c02fd38f25277 100644 (file)
@@ -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).