RFR: 8359685: Test stress/compiler/deoptimize/Test.java fails Out of space in CodeCache

SendaoYan syan at openjdk.org
Thu Jun 19 03:24:26 UTC 2025


Hi all,

Test test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/compiler/deoptimize/Test.java fails "Out of space in CodeCache" on machine which has huge CPU core number. This test will create lots of compile threads to stress test the compiler deoptimize, the thread number depends on the CPU core number, so on huge CPU core number machine this test will report "Out of space in CodeCache" failure.
The "java.lang.OutOfMemoryError: Out of space in CodeCache" seems not the expected error, and increase the max code cache memory will make this test run pass steady. Could we change ReservedCodeCacheSize from 100m to 200m?

Test-fix only, change has been verified on 256 core number linux-x86 machine and on 64 core number linux-x86 machine.

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

Commit messages:
 - 8359685: Test stress/compiler/deoptimize/Test.java fails Out of space in CodeCache

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

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


More information about the hotspot-compiler-dev mailing list