mirror of
https://github.com/golang/go
synced 2024-11-22 15:54:52 -07:00
runtime: update the variable name in comment
The comment use allg to refer to allgs in code. Update the comment to
use the same variable name.
Change-Id: Id059fce7846776737fb038b86bcf8765a4a7c9c0
GitHub-Last-Rev: 234fb0a208
GitHub-Pull-Request: golang/go#46723
Reviewed-on: https://go-review.googlesource.com/c/go/+/327629
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
parent
0fd20ed5b6
commit
9d13f8d43e
@ -529,8 +529,8 @@ var (
|
||||
allglock mutex
|
||||
allgs []*g
|
||||
|
||||
// allglen and allgptr are atomic variables that contain len(allg) and
|
||||
// &allg[0] respectively. Proper ordering depends on totally-ordered
|
||||
// allglen and allgptr are atomic variables that contain len(allgs) and
|
||||
// &allgs[0] respectively. Proper ordering depends on totally-ordered
|
||||
// loads and stores. Writes are protected by allglock.
|
||||
//
|
||||
// allgptr is updated before allglen. Readers should read allglen
|
||||
|
Loading…
Reference in New Issue
Block a user