aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Wang <wangchaogo1990@gmail.com>2021-06-14 11:29:33 +0000
committerIan Lance Taylor <iant@golang.org>2021-06-14 22:09:35 +0000
commit9d13f8d43e88a349762c61aee84614ac83dab521 (patch)
tree26d51b50d4bb7f48ca6dc95eae4ee5f2fe61cfbb
parent0fd20ed5b67a950c7085b20c36dbfd9a70d2bfda (diff)
downloadgo-9d13f8d43e88a349762c61aee84614ac83dab521.tar.gz
go-9d13f8d43e88a349762c61aee84614ac83dab521.zip
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: 234fb0a208f105352d33456159725a3fce3a3071 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>
-rw-r--r--src/runtime/proc.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go
index 59160c6525..8f1a443945 100644
--- a/src/runtime/proc.go
+++ b/src/runtime/proc.go
@@ -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