]> Cypherpunks repositories - gostls13.git/commit
runtime: hold sched.lock over globrunqputbatch in runqputbatch
authorMichael Anthony Knyszek <mknyszek@google.com>
Tue, 28 Jul 2020 20:02:57 +0000 (20:02 +0000)
committerMichael Knyszek <mknyszek@google.com>
Thu, 30 Jul 2020 15:46:39 +0000 (15:46 +0000)
commit6b4dcf19fa493905689dedc27f2232b74c366057
treeb15423a2a5ea34c492f8d56a990be32495b51a5a
parent85afa2eb190d5d1a06584803bde4b4ee9b0e79b0
runtime: hold sched.lock over globrunqputbatch in runqputbatch

globrunqputbatch should never be called without sched.lock held.
runqputbatch's documentation even says it may acquire sched.lock in
order to call it.

Fixes #40457.

Change-Id: I5421b64f1da3a6087dfebbef7203db0c95d213a8
Reviewed-on: https://go-review.googlesource.com/c/go/+/245377
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/proc.go