]> Cypherpunks repositories - gostls13.git/commit
runtime: disable automatic GC for STW metric tests
authorRhys Hiltner <rhys@justin.tv>
Thu, 16 Nov 2023 17:44:21 +0000 (09:44 -0800)
committerGopher Robot <gobot@golang.org>
Thu, 16 Nov 2023 22:15:03 +0000 (22:15 +0000)
commit3e8000393e1b8e4cd0f8bb448bf4655920ff6fa4
treee4e1f7b463630ae067dc9285016db14f1294f9f2
parent3a9254636c35b8d99826b203e73f335fbcd07fa9
runtime: disable automatic GC for STW metric tests

A follow-up to https://go.dev/cl/534161 -- calls to runtime/trace.Start
and Stop synchronize with the GC, waiting for any in-progress mark phase
to complete. Disable automatic GCs to quiet the system, so we can
observe only the test's intentional pauses.

Change-Id: I6f8106c42528f9bda9afec1c151119783bbc78dc
Reviewed-on: https://go-review.googlesource.com/c/go/+/543075
Run-TryBot: Rhys Hiltner <rhys@justin.tv>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Rhys Hiltner <rhys@justin.tv>
Reviewed-by: Bryan Mills <bcmills@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/metrics_test.go