JDK-8367613 : Test compiler/runtime/TestDontCompileHugeMethods.java failed
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 26
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-09-15
  • Updated: 2025-09-19
  • Resolved: 2025-09-19
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 26
26 masterFixed
Related Reports
Causes :  
Description
java.lang.RuntimeException: '   HugeSwitch::shortMethod (' missing from stdout/stderr
	at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:253)
	at compiler.runtime.TestDontCompileHugeMethods.runTest(TestDontCompileHugeMethods.java:111)
	at compiler.runtime.TestDontCompileHugeMethods.main(TestDontCompileHugeMethods.java:119)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:335)
	at java.base/java.lang.Thread.run(Thread.java:1474)

Log only shows:

2561 1260    b  1       HugeSwitch::main (34 bytes)
2565 1260       1       HugeSwitch::main (34 bytes)   made not entrant: C1 deoptimize for patching
Comments
Changeset: 25a4e263 Branch: master Author: Man Cao <manc@openjdk.org> Date: 2025-09-19 19:53:33 +0000 URL: https://git.openjdk.org/jdk/commit/25a4e26320340cdda082cd45639e73b137ce45a2
19-09-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/27306 Date: 2025-09-16 06:48:23 +0000
16-09-2025

The failure seems caused by combination of -Xcomp and -XX:TieredStopAtLevel=1. I ran the following and it passed, but it fails with -Xcomp: make test TEST=hotspot/jtreg/compiler/runtime/TestDontCompileHugeMethods.java JTREG="JAVA_OPTIONS=-ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -XX:TieredStopAtLevel=1" Also, it can pass with -Xcomp if I remove -XX:TieredStopAtLevel=1. Looks like adding @requires (vm.compMode != "Xcomp") will skip the test under -Xcomp.
15-09-2025

ILW = Test failure, single test with TieredStopAtLevel=1, no workaround other than not stopping at level 1 = MLH = P4 If there is no quick fix, we might want to consider problemlisting the test for now.
15-09-2025

[~manc] can you have a look please?
15-09-2025

Seems to be caused by JDK-8366118 EDIT: Test was added by JDK-8366118 Test fails with args: Dtest.java.opts='-Xcomp -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -XX:TieredStopAtLevel=1' \
15-09-2025