RFR: 8367613: Test compiler/runtime/TestDontCompileHugeMethods.java failed

Damon Fenacci dfenacci at openjdk.org
Tue Sep 16 08:49:24 UTC 2025


On Tue, 16 Sep 2025 06:48:23 GMT, Man Cao <manc at openjdk.org> wrote:

> Hi,
> 
> Could anyone approve this change that exclude this test when running with `-Xcomp`? This avoids the test failure reported in [JDK-8367613](https://bugs.openjdk.org/browse/JDK-8367613).
> 
> For reasons I don't yet understand, the `HugeSwitch::shortMethod` method is not compiled under `-Xcomp  -XX:TieredStopAtLevel=1`. The method gets compiled with either `-Xcomp` or `-XX:TieredStopAtLevel=1`, but not both. I appreciate if anyone could provide insights on possible reasons.

Marginal thing: since the issue happens with `-Xcomp` and `-XX:TieredStopAtLevel=1` it might be good to add the latter to `@requires` to restrict it as much as possible.
Also you might want to add this bug to the `@bug` tag.

-------------

PR Review: https://git.openjdk.org/jdk/pull/27306#pullrequestreview-3228463710


More information about the hotspot-compiler-dev mailing list