]> Cypherpunks repositories - gostls13.git/commit
runtime: lower mutex contention test expectations
authorRhys Hiltner <rhys.hiltner@gmail.com>
Wed, 22 May 2024 18:53:36 +0000 (11:53 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 22 May 2024 20:34:59 +0000 (20:34 +0000)
commitac6dea7aa1ccc3fa2b07be05ba71714e686f928a
tree08a5fc4423d098b117ba23b31db1e2daa0f6bb35
parentb6fa505c4a3508600a4e4d7834228046b0310873
runtime: lower mutex contention test expectations

As of https://go.dev/cl/586796, the runtime/metrics view of internal
mutex contention is sampled at 1 per gTrackingPeriod, rather than either
1 (immediately prior to CL 586796) or the more frequent of
gTrackingPeriod or the mutex profiling rate (Go 1.22). Thus, we no
longer have a real lower bound on the amount of contention that
runtime/metrics will report. Relax the test's expectations again.

For #64253

Change-Id: I94e1d92348a03599a819ec8ac785a0eb3c1ddd73
Reviewed-on: https://go-review.googlesource.com/c/go/+/587515
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Rhys Hiltner <rhys.hiltner@gmail.com>
src/runtime/metrics_test.go