JDK-8270447 : [IR Framework] Add missing compilation level restriction when using FlipC1C2 stress option
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17,18,repo-valhalla
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-07-14
  • Updated: 2023-09-20
  • Resolved: 2021-07-26
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 JDK 18
17.0.10-oracleFixed 18 b08Fixed
Related Reports
Relates :  
Description
The newly converted IR tests (JDK-8263024) are not yet stable when using various IR framework stress options like -DExcludeRandom or -DFlipC1C2. These tests needs to be fixed. There could also be a bug in the IR framework when using these options.

Edit: Turns out the FlipC1C2 option forgets to restrict the compilation level once a C1 compilation is replaced with a C2 compilation and vice verca. This results in an error when the test is run with -XX:-TieredCompilation or -XX:TieredStopAtLevel=1,2,3.
Comments
Fix request [17u] I backport this for parity with 17.0.10-oracle. No risk, only a test change. Clean backport. SAP nightly testing passed.
18-09-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/1747 Date: 2023-09-15 11:05:22 +0000
15-09-2023

Changeset: 36aefa35 Author: Christian Hagedorn <chagedorn@openjdk.org> Date: 2021-07-26 07:54:22 +0000 URL: https://git.openjdk.java.net/jdk/commit/36aefa351afeb5fd6b87060e06c1e8060afb87a0
26-07-2021

ILW = Runtime exception when using FlipC1C2 stress option with restrictions to the compilation level, only with FlipC1C2 in combination with -XX:-TieredCompilation or -XX:TieredStopAtLevel=1,2,3, no workaround = MLH = P4
22-07-2021