JDK-8346965 : Multiple compiler/ciReplay test fails with -XX:+SegmentedCodeCache
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 25
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2025-01-03
  • Updated: 2025-01-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 25
25Unresolved
Description
4 tests fails run with VM options -XX:+SegmentedCodeCache
compiler/ciReplay/TestInlining.java
compiler/ciReplay/TestLambdas.java
compiler/ciReplay/TestServerVM.java
compiler/ciReplay/TestUnresolvedClasses.java

The test log snippet:
java.lang.RuntimeException: Unexpected exit code for positive case: [-XX:-TieredCompilation] expected: 1 but was: 0
        at jdk.test.lib.Asserts.fail(Asserts.java:689)
        at jdk.test.lib.Asserts.assertEquals(Asserts.java:204)
        at jdk.test.lib.Asserts.assertEQ(Asserts.java:180)
        at compiler.ciReplay.CiReplayBase.positiveTest(CiReplayBase.java:279)
        at compiler.ciReplay.TestInlining.testAction(TestInlining.java:54)
        at compiler.ciReplay.CiReplayBase.runTest(CiReplayBase.java:139)
        at compiler.ciReplay.TestInlining.main(TestInlining.java:49)
Comments
ILW = Multiple compiler replay test failures when using -XX:+SegmentedCodeCache, 4 tests, no workaround = MLH = P4
06-01-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/22926 Date: 2025-01-06 12:41:13 +0000
06-01-2025

JVM option '-XX:ReservedCodeCacheSize=4m' inside test conflict with JVM option '-XX:+SegmentedCodeCache' which pass from outside test. > java -XX:ReservedCodeCacheSize=4m -XX:+SegmentedCodeCache -version Error occurred during initialization of VM Invalid code heap sizes: NonNMethodCodeHeapSize (8006K) + ProfiledCodeHeapSize (4K) + NonProfiledCodeHeapSize (4K) = 8014K is greater than ReservedCodeCacheSize (4096K).
06-01-2025