From 2f6783c098696790223eae6986700868e9da0472 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sat, 13 Aug 2022 03:56:02 +0800 Subject: [PATCH] runtime: fix a comment typo in runqget() Change-Id: I79695e1cfda3b4cd911673f6e14dc316c451e2ed Reviewed-on: https://go-review.googlesource.com/c/go/+/423436 Reviewed-by: Michael Knyszek Auto-Submit: Michael Knyszek Run-TryBot: Michael Knyszek Reviewed-by: Michael Pratt --- src/runtime/proc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 9a7bd941db0fb7..a366f0264d142a 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -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 }