]> Cypherpunks repositories - gostls13.git/commit
runtime: add edge lockRankSysmon -> lockRankRwmutexR
authorDan Scales <danscales@google.com>
Tue, 27 Oct 2020 22:52:42 +0000 (15:52 -0700)
committerDan Scales <danscales@google.com>
Wed, 28 Oct 2020 15:52:02 +0000 (15:52 +0000)
commita69cda9a6541b7d0a1f25159b2eee9b058f4ac70
tree2f0ebcd528d79b3abde56681d5e161d4285471e5
parentb85c2dd56c4ecc7bf445bd1615467ecd38598eee
runtime: add edge lockRankSysmon -> lockRankRwmutexR

Sysmon can actually get the RW lock execLock while holding the sysmon
lock (if no M is available), so there is an edge from lockRankSysmon to
lockRankRwmutexR. The stack trace is sysmon() [gets sched.sysmonlock] ->
startm() -> newm() -> newm1() -> execLock.runlock() [gets
execLock.rLock]

Change-Id: I9658659ba3899afb5219114d66b989abd50540db
Reviewed-on: https://go-review.googlesource.com/c/go/+/265721
Trust: Dan Scales <danscales@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/lockrank.go