]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: fix lockrank ordering for pinner implementation
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 19 May 2023 15:56:07 +0000 (15:56 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 19 May 2023 16:15:06 +0000 (16:15 +0000)
commit78df00dd6f47eb13ff2873fb92223d8b64323d32
tree16cf998cda412fd36bd0ada3f7402ac144a43442
parentf283cba396d40b8ae8e724d7368480a85a255c7f
runtime: fix lockrank ordering for pinner implementation

The new Pinner API's implementation imposes some partial-orders that are
safe but previously did not exist between a mspanSpecial, mheapSpecial,
and mheap. Fix that up in the lock ranking.

For #46787.

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