Repository navigation
Conversation
|
In the old multiANewArray evaluator the dim child of the node was evaluated and added to the post dependency conditions. We changed that logic and evaluated the child only if the ref count was bigger than 1 and didn't add it to the dependency conditions. This change cause the the RA store and load the dims register inside the OOL code which is not often executed. As a result, if we have several multiANewArray trees, and one inline allocation fails, chances are we do not restore the proper value of the dims register and helper call fails. |
|
@r30shah I opened this PR to fix the bug and create an issue to study the allocator behaviour to find why exactly this is happening. |
a51061d to
2d26667
Compare
r30shah
left a comment
There was a problem hiding this comment.
Please update the commit message , body and PR title to reflect the changes properly.,
161ce47 to
005be43
Compare
Although the number of dimensions in multianewarray node is constant and not used via a register in the evaluator's mainline ICF path, it is referenced in the out-of-line (OOL) section for setting up call parameters. If the dimension node has multiple reference counts and is not explicitly tied to the mainline dependency, it may be spilled in the OOL path and reverse-spilled elsewhere, potentially leading to unexpected behavior. This change ensures that the dimension node is evaluated and attached to the mainline dependency to maintain correctness and prevent such issues. Fix: eclipse-openj9#22757 signed-off-by: Ehsan Kiani Far <ehsan.kianifar@gmail.com>
005be43 to
7e375d3
Compare
|
Jenkins test sanity zlinux jdk8,jdk21 |
multianewarray opcode instructions was updated in #22548 and the
evaluation of the second child was changed to evaluate only if
reference count is > 1. This caused the last multianewarray tree to
have wrong dims register child and some failures. Remove the condition
for evaluating children.
Fix: #22757