JDK-8344844 : ciReplay tests fail with -XX:+UseCompactObjectHeaders because CDS is disabled since JDK-8341553
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-11-22
  • Updated: 2024-11-28
  • Resolved: 2024-11-22
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 24
24 b26Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
The following tests fail with -XX:+UnlockExperimentalVMOptions -XX:+UseCompactObjectHeaders:

compiler/ciReplay/TestIncrementalInlining.java
compiler/ciReplay/TestInlining.java
compiler/ciReplay/TestInliningProtectionDomain.java
compiler/ciReplay/TestLambdas.java
compiler/ciReplay/TestServerVM.java
compiler/ciReplay/TestUnresolvedClasses.java

----------System.err:(17/1192)----------
java.lang.RuntimeException: Unexpected exit code for positive case: [-XX:-TieredCompilation] expected: 1 but was: 0
	at jdk.test.lib.Asserts.fail(Asserts.java:691)
	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:271)
	at compiler.ciReplay.TestInlining.testAction(TestInlining.java:54)
	at compiler.ciReplay.CiReplayBase.runTest(CiReplayBase.java:131)
	at compiler.ciReplay.TestInlining.main(TestInlining.java:49)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
	at java.base/java.lang.Thread.run(Thread.java:1447)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Unexpected exit code for positive case: [-XX:-TieredCompilation] expected: 1 but was: 0
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Unexpected exit code for positive case: [-XX:-TieredCompilation] expected: 1 but was: 0
Comments
Changeset: 847f65c1 Branch: master Author: Tobias Hartmann <thartmann@openjdk.org> Date: 2024-11-22 11:37:35 +0000 URL: https://git.openjdk.org/jdk/commit/847f65c14a8fea3d5e2ee9d920c458b8923da3b4
22-11-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/22317 Date: 2024-11-22 10:30:38 +0000
22-11-2024

ILW = Tests fail because CDS is not enabled (test bug), ciReplay tests with -XX:+UseCompactObjectHeaders at tier8, no workaround = MLH = P4
22-11-2024

The issue is quite intermittent. I narrowed it down to JDK-8341553 which, if I understand correctly, disabled CDS for -XX:+UseCompactObjectHeaders. It's a known issue that the ciReplay tests don't work well if CDS is disabled, see JDK-8316526. I'll exclude the ciReplay test from running when CDS is disabled.
22-11-2024