diff options
| author | Rhys Hiltner <rhys.hiltner@gmail.com> | 2024-08-15 18:47:38 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-08-19 15:50:50 +0000 |
| commit | 433c1d3b4ab41fa4272bd61f8ad2918ccd1e390d (patch) | |
| tree | 4ea7a0a03bcf6f2849d13a833ad9e17d67de035d /src/cmd/compile/internal/devirtualize/devirtualize.go | |
| parent | 3d9a89b05733f6787900ea7034aab0471e065946 (diff) | |
| download | go-433c1d3b4ab41fa4272bd61f8ad2918ccd1e390d.tar.xz | |
runtime: store zero-delay mutex contention events
Mutex contention events with delay of 0 need more than CL 604355 added:
When deciding which event to store in the M's single available slot,
always choose to drop the zero-delay event. Store an explicit flag for
whether we have an event to store, rather than relying on a non-zero
delay.
And, fix a test of sync.Mutex contention that expects those events to
have non-zero delay. The reporting of non-runtime contention like this
has long allowed zero-delay events, which we see when cputicks has low
resolution.
Fixes #68892
Fixes #68906
Change-Id: Id412141e4eb09724f3ce195899a20d59c92d7b78
Reviewed-on: https://go-review.googlesource.com/c/go/+/606115
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Rhys Hiltner <rhys.hiltner@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/cmd/compile/internal/devirtualize/devirtualize.go')
0 files changed, 0 insertions, 0 deletions
