]> Cypherpunks repositories - gostls13.git/commit
runtime: test for contention in both semaphore paths
authorRhys Hiltner <rhys@justin.tv>
Tue, 21 Nov 2023 23:31:26 +0000 (15:31 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 28 Nov 2023 16:38:58 +0000 (16:38 +0000)
commitd59bd25a30bbfc96d4123517f6f7b637c910e059
treeb1eb3789adcd780a7895b11e89ce07a5b1548014
parent46410b78a53a5dff4f0fb1bc181103db4029384a
runtime: test for contention in both semaphore paths

Most contention on the runtime locks inside semaphores is observed in
runtime.semrelease1, but it can also appear in runtime.semacquire1. When
examining contention profiles in TestRuntimeLockMetricsAndProfile, allow
call stacks that include either.

For #64253

Change-Id: Id4f16af5e9a28615ab5032a3197e8df90f7e382f
Reviewed-on: https://go-review.googlesource.com/c/go/+/544375
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Rhys Hiltner <rhys@justin.tv>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/metrics_test.go