RFR: 8316131: runtime/cds/appcds/TestParallelGCWithCDS.java fails with JNI error

Calvin Cheung ccheung at openjdk.org
Fri May 31 22:42:22 UTC 2024


The `runtime/cds/appcds/TestParallelGCWithCDS.java` test currently expects specific output. When running with a small heap, JVM could fail at different places with different output.
Updating the test if the expected output isn't there, checks for non-zero exit value and that the JVM hasn't crashed.

Tested with the following jtreg options on linux-x64:

-javaoptions:"-Xcomp -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:-TieredCompilation -XX:-UseCompressedOops -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler -Xmx8m -Xms2m"
-timeout:25

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

Commit messages:
 - 8316131: runtime/cds/appcds/TestParallelGCWithCDS.java fails with JNI error

Changes: https://git.openjdk.org/jdk/pull/19506/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19506&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8316131
  Stats: 11 lines in 1 file changed: 9 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/19506.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19506/head:pull/19506

PR: https://git.openjdk.org/jdk/pull/19506


More information about the hotspot-runtime-dev mailing list