JDK-8262505 : compiler/whitebox/EnqueueMethodForCompilationTest.java fails with "compiler.whitebox.SimpleTestCaseHelper(int) must be compiled"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86_64
  • Submitted: 2021-02-28
  • Updated: 2021-04-27
  • Resolved: 2021-03-05
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 17
17Resolved
Related Reports
Duplicate :  
Relates :  
Description
The following test failed in the JDK17 CI:

compiler/whitebox/EnqueueMethodForCompilationTest.java

Here's a snippet from the log file:

on exception 'private compiler.whitebox.SimpleTestCaseHelper(int) must be compiled':
private compiler.whitebox.SimpleTestCaseHelper(int):
	compilable:	true
	compiled:	false
	comp_level:	0
	osr_compilable:	true
	osr_compiled:	false
	osr_comp_level:	0
	in_queue:	false
compile_queues_size:	54

   1010  306             java.lang.String::indexOf (29 bytes)
   1015  302             java.lang.StringLatin1::indexOf (36 bytes)
----------System.err:(29/2387)----------
java.lang.RuntimeException: private compiler.whitebox.SimpleTestCaseHelper(int) must be compiled
	at compiler.whitebox.CompilerWhiteBoxTest.checkCompiled(CompilerWhiteBoxTest.java:258)
	at compiler.whitebox.EnqueueMethodForCompilationTest.test(EnqueueMethodForCompilationTest.java:83)
	at compiler.whitebox.CompilerWhiteBoxTest.runTest(CompilerWhiteBoxTest.java:170)
	at compiler.whitebox.CompilerWhiteBoxTest.main(CompilerWhiteBoxTest.java:129)
	at compiler.whitebox.EnqueueMethodForCompilationTest.main(EnqueueMethodForCompilationTest.java:50)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:831)
java.lang.RuntimeException: private compiler.whitebox.SimpleTestCaseHelper(int) must be compiled
	at compiler.whitebox.CompilerWhiteBoxTest.checkCompiled(CompilerWhiteBoxTest.java:258)
	at compiler.whitebox.EnqueueMethodForCompilationTest.test(EnqueueMethodForCompilationTest.java:83)
	at compiler.whitebox.CompilerWhiteBoxTest.runTest(CompilerWhiteBoxTest.java:170)
	at compiler.whitebox.CompilerWhiteBoxTest.main(CompilerWhiteBoxTest.java:129)
	at compiler.whitebox.EnqueueMethodForCompilationTest.main(EnqueueMethodForCompilationTest.java:50)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:831)

JavaTest Message: Test threw exception: java.lang.RuntimeException: private compiler.whitebox.SimpleTestCaseHelper(int) must be compiled
JavaTest Message: shutting down test

This test task's JVM args are:
-Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:-TieredCompilation -XX:+DeoptimizeALot
Comments
closing as dup. JDK-8261247. if this bug reoccurs after is 8261247 fixed, please reopen 8262505.
05-03-2021

Hi [~iignatyev], Request your help with this bug. Can this be similar to JDK-8261247 !? Thanks
05-03-2021

Sounds like a duplicate of JDK-8261247?
02-03-2021