]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: update the variable name in comment
authorEric Wang <wangchaogo1990@gmail.com>
Mon, 14 Jun 2021 11:29:33 +0000 (11:29 +0000)
committerIan Lance Taylor <iant@golang.org>
Mon, 14 Jun 2021 22:09:35 +0000 (22:09 +0000)
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>

src/runtime/proc.go

index 59160c6525fac2713e2ec8efd3a6089a4bea403b..8f1a4439456eff1d64eac8a5e463b2b63e0ba6af 100644 (file)
@@ -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