JDK-8223380 : [Graal] compiler/c2/Test8062950.java failed with time out.
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86_64
  • Submitted: 2019-05-06
  • Updated: 2019-05-16
  • Resolved: 2019-05-08
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 13
13 b21Fixed
Related Reports
Relates :  
Relates :  
Description
java.lang.RuntimeException: Expected to get exit value of [1]

	at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:430)
	at compiler.c2.Test8062950.main(Test8062950.java:44)
	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:567)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.base/java.lang.Thread.run(Thread.java:830)

test result: Error. Agent error: java.lang.Exception: Agent 8 timed out with a timeout of 1200 seconds; check console log for any additional details
Comments
It is fine to run tests with these flags when libgraal is used. That is why I will put test on problem list with JDK-8207267 umbrella bug for such cases.
08-05-2019

This test explicitly adds -Xcomp and -XX:-TieredCompilation: 37 public class Test8062950 { 38 private static final String CLASSNAME = "DoesNotExist"; 39 public static void main(String[] args) throws Exception { 40 ProcessTools.executeTestJvm("-Xcomp", 41 "-XX:-TieredCompilation", 42 "-XX:-UseOptoBiasInlining", Perhaps we should add @requires !vm.graal.enabled if the issue will stay with libgraal as well.
08-05-2019

Anyway, we should not tun Java Graal with -XX:-TieredCompilation because Graal will be executed by Interpreter instead of bean compiled with C1. With -Xcomp and -Xbatch it is worse because execution is blocked until compilation is finished - that is why tests are slow. Even with jdk13-932 the best time I saw was 300 sec. When running with -Xint (running test in Interpreter only) it took 2 sec! Lets put test on graal's problem list and be done with it.
08-05-2019

This is very strange. I compared time running this test on lab linux-x64 machine with jdk13-932 (where we did not see timeouts) and with jdk13-957 which have it. And there is no difference.
08-05-2019

It seems we have to use JDK-8207267 as umbrella bug because JDK-8222524 is closed as its duplicate.
06-05-2019

Yes, it is the same issue. We should just put test on Graal's problem list with that umbrella bug.
06-05-2019

This may be duplicate of JDK-8222524 '[Graal] Execution is very slow with -Xcomp and -XX:-TieredCompilation'
06-05-2019