> The test fails intermittently with OutOfMemoryError under -Xcheck:jni > -XX:+UseZGC (the original report also had -XX:+ZGenerational, which is gone > since JEP 490). Reproduced at about 2%: 6 of 300 runs on four hosts, all > with the original signature. > > GC logs from the failing runs show the 512m heap reaching 100% with ZGC in > back-to-back allocation-stall collections that reclaim almost nothing, ending > in the OOME while Allocator.helper grows its list. The sampling > agent holds jweaks on the sampled objects, which keeps the transient garbage > alive until a major collection runs. The test's actual live set is only about > 20MB. > > Fix: bump the test heap from 512m to 1g. > > Testing: 500 default-config runs at 1g all pass. The failing configuration at > 1g (501 runs) had 2 OOME failures, about 0.4% vs 2% at 512m. > > > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai).
Shiv Shah has updated the pull request incrementally with one additional commit since the last revision: enable gc logging in the test ------------- Changes: - all: https://git.openjdk.org/jdk/pull/32229/files - new: https://git.openjdk.org/jdk/pull/32229/files/8c24fd30..208f926e Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=32229&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=32229&range=01-02 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/32229.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/32229/head:pull/32229 PR: https://git.openjdk.org/jdk/pull/32229
