]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: add partial lock order between mspanSpecial and gcBitsArenas
authorMichael Anthony Knyszek <mknyszek@google.com>
Tue, 23 May 2023 17:15:21 +0000 (17:15 +0000)
committerMichael Knyszek <mknyszek@google.com>
Tue, 23 May 2023 18:00:50 +0000 (18:00 +0000)
commit807cce479f38c84b0bca63db80f64e4700d8643c
tree348d8773fc1a645f8ed182f6fd00163dcd1d3807
parent45b74d20a08d8e5159480d86f95073b9ea661cc6
runtime: add partial lock order between mspanSpecial and gcBitsArenas

CL 493275 started using gcBits for pinner bits. This means gcBits can be
allocated while holding the mspanSpecial lock. This is safe because
these were just parallel in the partial order, but now they need an
explicit edge between them.

For #58277.

Change-Id: I37917730e12d59cf0580f198d732198413a56424
Reviewed-on: https://go-review.googlesource.com/c/go/+/497475
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/runtime/lockrank.go
src/runtime/mklockrank.go