[jdk11u-dev] RFR: 8242312: use reproducible random in hotspot gc tests

Goetz Lindenmaier goetz at openjdk.java.net
Fri Apr 8 07:50:11 UTC 2022


I backport this for parity with 11.0.16-oracle.

Resolved context, "8272783: Epsilon: Refactor tests to improve performance" already backported
 test/hotspot/jtreg/gc/epsilon/TestByteArrays.java
 test/hotspot/jtreg/gc/epsilon/TestElasticTLAB.java
 test/hotspot/jtreg/gc/epsilon/TestElasticTLABDecay.java
 test/hotspot/jtreg/gc/epsilon/TestRefArrays.java

I had to "implement" the change for this test. The test was removed with CMS
before the backported change was pushed.
 test/hotspot/jtreg/gc/stress/gcold/TestGCOldWithCMS.java

Copyright
 test/hotspot/jtreg/gc/g1/TestShrinkAuxiliaryData10.java

Context
 test/hotspot/jtreg/gc/g1/humongousObjects/TestNoAllocationsInHRegions.java
 test/hotspot/jtreg/gc/logging/TestUnifiedLoggingSwitchStress.java

"8256806: Shenandoah: optimize shenandoah/jni/TestPinnedGarbage.java test" was already 
backported. I had to redo the change, differences wrt. random to head are gone now.
 test/hotspot/jtreg/gc/shenandoah/jni/TestPinnedGarbage.java

Test at different location, patched manually
 test/hotspot/jtreg/gc/stress/CriticalNativeStress.java

-------------

Commit messages:
 - Backport 5efa545d487cbcdbee56e3afad925762c8688886

Changes: https://git.openjdk.java.net/jdk11u-dev/pull/1021/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk11u-dev&pr=1021&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8242312
  Stats: 276 lines in 51 files changed: 99 ins; 18 del; 159 mod
  Patch: https://git.openjdk.java.net/jdk11u-dev/pull/1021.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk11u-dev pull/1021/head:pull/1021

PR: https://git.openjdk.java.net/jdk11u-dev/pull/1021


More information about the jdk-updates-dev mailing list