]> Cypherpunks repositories - gostls13.git/commit
runtime: move trace locks to the leaf of the lock graph
authorAustin Clements <austin@google.com>
Thu, 21 Jul 2022 19:53:25 +0000 (15:53 -0400)
committerAustin Clements <austin@google.com>
Thu, 11 Aug 2022 20:16:36 +0000 (20:16 +0000)
commitcc8bac88353d8067244a196f70b2fe9475f4336e
treef26f2fb39c4343bbbbe3e1e70a0659a3c59e485d
parent6c2e327e35b6fe838b496ec1e8fb2f597c5bd59a
runtime: move trace locks to the leaf of the lock graph

Now that trace.lock cannot be held over a stack split, we can move
that lock and traceStackTab to the leaf of the lock graph. We add a
couple edges to STACKGROW that were previously passing through trace.

Fixes #53979.

Change-Id: Ie664ff7bb33973745f991f7516dc6106e60f5892
Reviewed-on: https://go-review.googlesource.com/c/go/+/418957
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/lockrank.go
src/runtime/mklockrank.go