]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix a comment typo in runqget()
authorAndy Pan <panjf2000@gmail.com>
Fri, 12 Aug 2022 19:56:02 +0000 (03:56 +0800)
committerMichael Pratt <mpratt@google.com>
Fri, 12 Aug 2022 20:40:05 +0000 (20:40 +0000)
Change-Id: I79695e1cfda3b4cd911673f6e14dc316c451e2ed
Reviewed-on: https://go-review.googlesource.com/c/go/+/423436
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/proc.go

index 9a7bd941db0fb70559310832642dc8ba3c53963d..a366f0264d142abf26fdecbbe8d7b830144b6368 100644 (file)
@@ -5992,7 +5992,7 @@ func runqget(pp *p) (gp *g, inheritTime bool) {
        next := pp.runnext
        // If the runnext is non-0 and the CAS fails, it could only have been stolen by another P,
        // because other Ps can race to set runnext to 0, but only the current P can set it to non-0.
-       // Hence, there's no need to retry this CAS if it falls.
+       // Hence, there's no need to retry this CAS if it fails.
        if next != 0 && pp.runnext.cas(next, 0) {
                return next.ptr(), true
        }