JDK-8233681 : [Graal] compiler/gcbarriers/EqvUncastStepOverBarrier.java test fails with 'java.lang.RuntimeException: Method compilation failed'
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 14,15
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2019-11-06
  • Updated: 2020-11-18
  • Resolved: 2020-11-18
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 16
16Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Test fail in JDK 14 CI testing -
compiler/gcbarriers/EqvUncastStepOverBarrier.java	

Extracts from test log - 
..............
----------System.out:(2/137)----------
WB error: failed to blocking compile at level 4 method  EqvUncastStepOverBarrier::test
WB error: blocking compilation is still in queue!
----------System.err:(14/1048)----------
Java HotSpot(TM) 64-Bit Server VM warning: Disabling tiered compilation with non-native JVMCI compiler is not recommended. Turning on tiered compilation and disabling intermediate compilation levels instead. 
java.lang.RuntimeException: Method compilation failed
	at EqvUncastStepOverBarrier.main(EqvUncastStepOverBarrier.java:54)
	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:564)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:833)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Method compilation failed
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Method compilation failed
..............
Comments
It could be duplicate of JDK-8227647. It has similar error message: WB error: failed to blocking compile at level 4 method EqvUncastStepOverBarrier::test WB error: blocking compilation is still in queue!
04-06-2020

I think the only explanation is that the compilation just failed (Graal threw an exception). It's hard to say why, since I cannot reproduce the failure anywhere. I thought we could have bailed out because of a JVMCI task timeout (see CompileBroker::wait_for_jvmci_completion()) but that would take 10 seconds. The test through seems to have failed immediately. I'm deferring this to 15 to see if it magically starts reproducing.
19-11-2019

Possibly a race but I can't see how. It works fine on my machine. Compiles that are initiated from a JVMCI thread are non-blocking so there shouldn't be any effect on the blocking compiles from user threads.
06-11-2019