]> Cypherpunks repositories - gostls13.git/commit
runtime/race: treat map concurrent access detection as a race detector hit
authorKeith Randall <khr@golang.org>
Wed, 6 Nov 2024 21:53:02 +0000 (13:53 -0800)
committerKeith Randall <khr@golang.org>
Thu, 7 Nov 2024 15:14:49 +0000 (15:14 +0000)
commitfc5e8f2f6ba07f999a780848aa66da7d73083c1e
tree9cd6194b039a9b224d482d21fcfcf823fcdb3ed5
parentdaa6c9310e6bc94426b04f908962dff558209408
runtime/race: treat map concurrent access detection as a race detector hit

Sometimes the runtime realizes there is a race before the race detector does.
Maybe that's a bug in the race detector? But we should probably handle it.

Update #70164
(Fixes? I'm not sure.)

Change-Id: Ie7e8bf2b06701368e0551b4a1aa40f6746bbddd8
Reviewed-on: https://go-review.googlesource.com/c/go/+/626036
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/race/race_test.go