]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: add raceFiniLock to lock ranking
authorIan Lance Taylor <iant@golang.org>
Sun, 23 Apr 2023 19:25:47 +0000 (12:25 -0700)
committerGopher Robot <gobot@golang.org>
Mon, 24 Apr 2023 21:37:06 +0000 (21:37 +0000)
commitf00e947cdf5cdac794d571c87a81ea8878a6fe4f
tree1fc70ecfa42eb3727e8a28ad26f2dab5a645c1f6
parent3f987ae61d4c52ddc364abf6472227d7821c9e43
runtime: add raceFiniLock to lock ranking

Also preserve the PC/SP in reentersyscall when doing lock ranking.
The test is TestDestructorCallbackRace with the staticlockranking
experiment enabled.

For #59711

Change-Id: I87ac1d121ec0d399de369666834891ab9e7d11b0
Reviewed-on: https://go-review.googlesource.com/c/go/+/487955
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
src/runtime/lockrank.go
src/runtime/lockrank_off.go
src/runtime/lockrank_on.go
src/runtime/mklockrank.go
src/runtime/proc.go
src/runtime/race.go