JDK-8202253 : [Graal] compiler/tiered/NonTieredLevelsTest.java fails with Graal
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2018-04-25
  • Updated: 2019-08-20
  • Resolved: 2018-04-25
Related Reports
Duplicate :  
Relates :  
Description
compiler/tiered/NonTieredLevelsTest.java fails when running in Graal JIT mode:

Warning: private compiler.whitebox.SimpleTestCaseHelper(int) is still in queue after 10819ms
java.lang.RuntimeException: expected[4] != actual[0]
	at compiler.tiered.CompLevelsTest.checkLevel(CompLevelsTest.java:76)
	at compiler.tiered.NonTieredLevelsTest.test(NonTieredLevelsTest.java:84)
	at compiler.whitebox.CompilerWhiteBoxTest.runTest(CompilerWhiteBoxTest.java:176)
	at compiler.whitebox.CompilerWhiteBoxTest.main(CompilerWhiteBoxTest.java:135)
	at compiler.tiered.NonTieredLevelsTest.main(NonTieredLevelsTest.java:65)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
	at java.base/java.lang.Thread.run(Thread.java:831)


The issue is intermittent but is seen from time to time.

To run the test:
> jtreg -jdk:build/linux-x64/images/jdk -vmoptions:"-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:+UseJVMCICompiler -Djvmci.Compiler=graal" -dir:test/hotspot/jtreg compiler/tiered/NonTieredLevelsTest.java
 
Comments
Similar issue with compiler/intrinsics/mathexact/sanity/SubtractExactLongTest.java: ava.lang.RuntimeException: Test bug, expected compilation (level): 4, but not compiled at compiler.intrinsics.mathexact.sanity.IntrinsicBase.checkCompilation(IntrinsicBase.java:100) at compiler.intrinsics.mathexact.sanity.IntrinsicBase.compileAtLevel(IntrinsicBase.java:95) at compiler.intrinsics.mathexact.sanity.IntrinsicBase.test(IntrinsicBase.java:59) at compiler.intrinsics.mathexact.sanity.SubtractExactLongTest.main(SubtractExactLongTest.java:50) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:569) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115) at java.base/java.lang.Thread.run(Thread.java:831)
25-04-2018