Skip to content

Commit 23c0d30

Browse files
committed
runtime: move the wakeableSleep lock under sched in the lock rank
Currently the wakeableSleep lock is placed just after timers in the ranking, but it turns out the timers lock can never be held over a timer func, so that's wrong. Meanwhile, wakeableSleep can acquire sched.lock. wakeableSleep, as it turns out, doesn't have any dependencies -- it's always acquired in a (mostly) regular goroutine context. Change-Id: Icc8ea76a8b309fbaf0f02215f16e5f706d49cd95 Reviewed-on: https://go-review.googlesource.com/c/go/+/544395 TryBot-Bypass: Michael Knyszek <[email protected]> Reviewed-by: Matthew Dempsky <[email protected]> Reviewed-by: Cherry Mui <[email protected]>
1 parent e4ea628 commit 23c0d30

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

0 commit comments

Comments
 (0)