]> Cypherpunks repositories - gostls13.git/commit
runtime: model wakeableSleep.lock in the race detector
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 1 Feb 2024 04:47:22 +0000 (04:47 +0000)
committerMichael Knyszek <mknyszek@google.com>
Thu, 1 Feb 2024 21:02:36 +0000 (21:02 +0000)
commit0b12e3d81cdba8a5676d6d61970d3dc5cb1462ac
tree49aba7b1643b022883afd54499766b3fd5517397
parent287f791845ac0311012814f4419d5e043c212d17
runtime: model wakeableSleep.lock in the race detector

Currently the flight recorder tests are failing in race mode because the
race detector doesn't see s.lock, leading to false positives. This has
also appeared in the trace tests. Model the lock in the race detector.

Fixes #65207.
Fixes #65283.

Change-Id: I1e9a5c9606536f55fdfc46b5f8443e9c7213c23d
Reviewed-on: https://go-review.googlesource.com/c/go/+/560215
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/trace2.go