JDK-8320319 : compiler/cha/* tests fail with -XX:+StressIncrementalInlining
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 22
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2023-11-17
  • Updated: 2023-11-17
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
tbdUnresolved
Related Reports
Blocks :  
Relates :  
Description
compiler/cha/DefaultRootMethod.java and compiler/cha/AbstractRootMethod.java intermittently fail with the new -XX:+StressIncrementalInlining flag introduced by JDK-8319879:

Java HotSpot(TM) 64-Bit Server VM warning: dependency logging results may be inflated by VerifyDependencies
java.lang.Error: java.lang.reflect.InvocationTargetException
	at compiler.cha.Utils.run(Utils.java:197)
	at compiler.cha.DefaultRootMethod.main(DefaultRootMethod.java:67)
	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.MainWrapper$MainTask.run(MainWrapper.java:138)
	at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at compiler.cha.Utils.run(Utils.java:193)
	... 5 more
Caused by: java.lang.RuntimeException: assertTrue: expected true, was false
	at jdk.test.lib.Asserts.fail(Asserts.java:634)
	at jdk.test.lib.Asserts.assertTrue(Asserts.java:486)
	at jdk.test.lib.Asserts.assertTrue(Asserts.java:472)
	at compiler.cha.Utils$ATest.assertNotCompiled(Utils.java:150)
	at compiler.cha.DefaultRootMethod$DefaultRoot.test(DefaultRootMethod.java:129)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	... 7 more

The test also fails with Graal as JIT (JDK-8319448), it might just be unstable.
Comments
ILW = Test fails because method is not compiled (probably test bug), intermittent with two test and VM stress flag, no workaround = MLH = P4
17-11-2023