JDK-8235801 : compiler/c2/Test8004741.java failed due to "Error: test method didn't get compiled"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,11.0.8-oracle,14,15,16,17
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2019-12-12
  • Updated: 2022-12-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.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Sub Tasks
JDK-8238930 :  
Description
The following test failed in the JDK14 CI:

compiler/c2/Test8004741.java

Here's a snippet from the log file:

#section:main
----------messages:(4/594)----------
command: main -Xmx128m -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions -XX:-TieredCompilation -XX:+StressCompiledExceptionHandlers -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI compiler.c2.Test8004741
reason: User specified action: run main/othervm -Xmx128m -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions -XX:-TieredCompilation -XX:+StressCompiledExceptionHandlers -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI compiler.c2.Test8004741 
Mode: othervm [/othervm specified]
elapsed time (seconds): 0.605
----------configuration:(0/0)----------
----------System.out:(0/0)----------
----------System.err:(13/811)----------
java.lang.Error: test method didn't get compiled
	at compiler.c2.Test8004741.main(Test8004741.java:154)
	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:832)

JavaTest Message: Test threw exception: java.lang.Error: test method didn't get compiled
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.Error: test method didn't get compiled
----------rerun:(39/6015)*----------


Starting this bug as a P2 since this is a Tier1 failure.
Comments
[~lmesnik] Would you have cycles to look at this test to see if it should be removed or re-implemented? It seems to have been created for JDK-8004741 where it appears that an async exception exposed an issue with exception handling. I'm not immediately clear if this test should be deleted or changed to use JVMTI SuspendThread. The test is currently excluded as David points out.
24-09-2022

This test should be removed as part of JDK-8289610 and the ProblemList updated.
23-09-2022

I'm seeing this error intermittently show up in our internal test builds.
21-01-2021

> I think it's time to ProblemList this failure. agree, I've created a subtask (JDK-8238930) to problem list the test in jdk/jdk, will send RFR shortly
11-02-2020

[~iignatyev] - There are more than 20 sightings of this failure mode in the JDK14 and JDK15 CIs. If you don't have a fix in mind for this issue, I think it's time to ProblemList this failure.
05-02-2020

the test failed 5 times out of 100. however in 100 runs w/ XX:+PrintCompilation, the test never failed, which makes it quite hard to understand that it's going on here.
17-12-2019

Igor, could you please have a look?
12-12-2019

ILW = Test fails because method does not get compiled (probably test bug), intermittent with single test at tier1, no workaround = MHH = P2
12-12-2019

Test was last modified by JDK-8214904 which also added the now failing check.
12-12-2019