mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
runtime: fix a comment typo in runqget()
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>
This commit is contained in:
parent
ea9c3fd42d
commit
2f6783c098
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue