]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix a typo mistake in comments
authorZhou Peng <p@ctriple.cn>
Mon, 7 May 2018 07:34:53 +0000 (07:34 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 7 May 2018 13:31:15 +0000 (13:31 +0000)
Change-Id: I33790af9fd0c2f6fdeaf9778c1381e0e6d697abb
Reviewed-on: https://go-review.googlesource.com/111755
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/proc.go

index 9b55feeff2271b4a3680fdd78e22a5c61ae5f9cb..1ef7c357a5e8e3474ab0251ba5ee573e7fa95277 100644 (file)
@@ -4972,7 +4972,7 @@ func sync_runtime_canSpin(i int) bool {
        // Spin only few times and only if running on a multicore machine and
        // GOMAXPROCS>1 and there is at least one other running P and local runq is empty.
        // As opposed to runtime mutex we don't do passive spinning here,
-       // because there can be work on global runq on on other Ps.
+       // because there can be work on global runq or on other Ps.
        if i >= active_spin || ncpu <= 1 || gomaxprocs <= int32(sched.npidle+sched.nmspinning)+1 {
                return false
        }