JDK-8308756 : [lworld] compiler/ciReplay/TestInliningProtectionDomain.java fails because CDS is disabled
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: repo-valhalla
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-05-24
  • Updated: 2023-06-02
  • Resolved: 2023-06-02
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.
Other
repo-valhallaFixed
Related Reports
Relates :  
Relates :  
Description
XX:CompileCommand=option,compiler.ciReplay.ProtectionDomainTestCompiledBefore::test,bool,PrintInlining,true]: expected 1 to equal 0
	at jdk.test.lib.Asserts.fail(Asserts.java:594)
	at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
	at jdk.test.lib.Asserts.assertEQ(Asserts.java:178)
	at compiler.ciReplay.CiReplayBase.positiveTest(CiReplayBase.java:271)
	at compiler.ciReplay.TestInliningProtectionDomain.testAction(TestInliningProtectionDomain.java:60)
	at compiler.ciReplay.DumpReplayBase.runTest(DumpReplayBase.java:54)
	at compiler.ciReplay.InliningBase.runTest(InliningBase.java:54)
	at compiler.ciReplay.TestInliningProtectionDomain.<init>(TestInliningProtectionDomain.java:55)
	at compiler.ciReplay.TestInliningProtectionDomain.main(TestInliningProtectionDomain.java:43)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
	at java.base/java.lang.Thread.run(Thread.java:1623)
Comments
A pull request was submitted for review. URL: https://git.openjdk.org/valhalla/pull/856 Date: 2023-06-02 12:36:27 +0000
02-06-2023

I added -XX:-InlineTypeReturnedAsFields as a temporary workaround with JDK-8301007 until JDK-8284443 is fixed but that disables CDS because of a flag mismatch (see JDK-8272290). The test now fails due to mainline issue JDK-8277301 which we seem to reliably trigger after the recent merge.
02-06-2023