]> Cypherpunks repositories - gostls13.git/commit
internal/trace/v2: halve the memory footprint of TestGCStress
authorMichael Anthony Knyszek <mknyszek@google.com>
Tue, 9 Apr 2024 03:09:34 +0000 (03:09 +0000)
committerMichael Knyszek <mknyszek@google.com>
Wed, 10 Apr 2024 18:53:01 +0000 (18:53 +0000)
commit3504da456591acf1b1ab479d4a5b2c91345a7f22
treeb64ad4e2d25405c68e4385bd9ec24d37d89c5228
parent5bba5b256ce287736da60372c5cf634395d7b1a3
internal/trace/v2: halve the memory footprint of TestGCStress

This test has been OOMing on 32-bit platforms for a bit. I suspect the
very high allocation rate is causing the program to outrun the GC in
some corner-case scenarios, especially on 32-bit Windows.

I don't have a strong grasp of what's going on yet, but lowering the
memory footprint should help with the flakiness. This shouldn't
represent a loss in test coverage, since we're still allocating and
assisting plenty (tracing the latter is a strong reason this test
exists).

For #66624.

Change-Id: Idd832cfc5cde04701386919df4490f201c71130a
Reviewed-on: https://go-review.googlesource.com/c/go/+/577475
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
src/internal/trace/v2/testdata/testprog/gc-stress.go