JDK-8284369 : TestFailedAllocationBadGraph fails with -XX:TieredStopAtLevel < 4
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,17,18,19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-04-05
  • Updated: 2022-08-12
  • Resolved: 2022-04-06
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 11 JDK 17 JDK 18 JDK 19
11.0.16-oracleFixed 17.0.4-oracleFixed 18.0.2Fixed 19 b17Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
Test name: compiler/allocation/TestFailedAllocationBadGraph.java
Reproducible: Always
VM Arg: -XX:TieredStopAtLevel=1,2,3 (Fails with or without -Xcomp)
Log:
----------System.out:(1/39)----------
WB error: invalid compilation level 4
----------System.err:(14/933)----------
java.lang.RuntimeException: should still be compiled
	at TestFailedAllocationBadGraph.run(TestFailedAllocationBadGraph.java:54)
	at TestFailedAllocationBadGraph.main(TestFailedAllocationBadGraph.java:46)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:833)
Comments
A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk11u-dev/pull/1024 Date: 2022-04-08 10:34:27 +0000
08-04-2022

Fix request [11u] I backport this for parity with 11.0.16-oracle. No risk, only a test change. Trivial resolve was needed, marked as clean. Test passes.
08-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk17u-dev/pull/340 Date: 2022-04-06 13:21:21 +0000
06-04-2022

Fix Request (17u): Should get backported for parity with 17.0.4-oracle. Applies cleanly. Test has passed.
06-04-2022

Fix Request (JDK 18u) Fixes a test bug. The fix trivial and applies cleanly. Already tested and backported to Oracle JDK 11u and 17u.
06-04-2022

Changeset: 955d61df Author: Tobias Hartmann <thartmann@openjdk.org> Date: 2022-04-06 06:51:02 +0000 URL: https://git.openjdk.java.net/jdk/commit/955d61df30099c01c6968fa5851643583f71250e
06-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8118 Date: 2022-04-06 05:27:50 +0000
06-04-2022

This affects mainline (JDK 19) as well. The reason we didn't see this before is that we don't execute with TieredStopAtLevel < 4 in the CI. ILW = Test fails due to unsupported compilation level (test bug), single test with TieredStopAtLevel < 4, no workaround = MLH = P4
06-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk18u/pull/92 Date: 2022-04-06 11:56:25 +0000
06-04-2022