JDK-8354283 : [lworld] TestAllocationMergeAndFolding fails since jdk-25+16, since an allocation is detected
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: repo-valhalla
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2025-04-10
  • Updated: 2025-04-28
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.
Other
repo-valhallaUnresolved
Related Reports
Relates :  
Description
Problem Listing compiler/valhalla/inlinetypes/TestAllocationMergeAndFolding.java , there are allocations and merge of "8314999: IR framework fails to detect allocation" finds them


Failure:

One or more @IR rules failed:                                                                                                                                                               |
                                                                                                                                                                                            |
Failed IR Rules (1) of Methods (1)                                                                                                                                                          |
----------------------------------                                                                                                                                                          |
1) Method "static int compiler.valhalla.inlinetypes.TestAllocationMergeAndFolding.test(boolean)" - [Failed IR rules: 1]:                                                                    |
   * @IR rule 1: "@compiler.lib.ir_framework.IR(phase={DEFAULT}, applyIfPlatformAnd={}, applyIfCPUFeatureOr={}, counts={}, failOn={"_#ALLOC#_"}, applyIfPlatform={}, applyIfPlatformOr={}, \|
applyIfOr={}, applyIfCPUFeatureAnd={}, applyIf={}, applyIfCPUFeature={}, applyIfAnd={}, applyIfNot={})"                                                                                     |
     > Phase "Before Macro Expansion":                                                                                                                                                      |
       - failOn: Graph contains forbidden nodes:                                                                                                                                            |
         * Constraint 1: "(\d+(\s){2}(Allocate\b.*)+(\s){2}===.*)"                                                                                                                          |
           - Matched forbidden node:                                                                                                                                                        |
             * 140  Allocate  === 26 6 7 8 1 (138 101 22 1 1 113 _ _ 1 1 1 416 416 1 416 418 1 31 35 1 ) [[ 141 142 143 155 156 157 ]]  rawptr:NotNull ( int:>=0, java/lang/Object:NotNull \|
*, bool, top, bool, bottom, java/lang/Object:NotNull *, long ) allocationKlass:compiler/valhalla/inlinetypes/TestAllocationMergeAndFolding$V2 TestAllocationMergeAndFolding$V::<init> @ bci\|
:13 (line 94) reexecute TestAllocationMergeAndFolding::test @ bci:10 (line 56) !jvms: TestAllocationMergeAndFolding$V::<init> @ bci:13 (line 94) TestAllocationMergeAndFolding::test @ bci:\|
10 (line 56)                                                                                                                                                                                |



Comments
Assigning to [~qamai] because this will be fixed by https://github.com/openjdk/valhalla/pull/1447
28-04-2025

A pull request was submitted for review. Branch: lworld URL: https://git.openjdk.org/valhalla/pull/1447 Date: 2025-04-27 13:17:10 +0000
27-04-2025