mirror of
https://github.com/golang/go
synced 2024-11-26 20:11:26 -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.
This commit is contained in:
parent
9d46ee5ac4
commit
234fb0a208
@ -529,8 +529,8 @@ var (
|
|||||||
allglock mutex
|
allglock mutex
|
||||||
allgs []*g
|
allgs []*g
|
||||||
|
|
||||||
// allglen and allgptr are atomic variables that contain len(allg) and
|
// allglen and allgptr are atomic variables that contain len(allgs) and
|
||||||
// &allg[0] respectively. Proper ordering depends on totally-ordered
|
// &allgs[0] respectively. Proper ordering depends on totally-ordered
|
||||||
// loads and stores. Writes are protected by allglock.
|
// loads and stores. Writes are protected by allglock.
|
||||||
//
|
//
|
||||||
// allgptr is updated before allglen. Readers should read allglen
|
// allgptr is updated before allglen. Readers should read allglen
|
||||||
|
Loading…
Reference in New Issue
Block a user