RFR: 8373577: C2: Cleanup adr_type of CallLeafPureNode

Quan Anh Mai qamai at openjdk.org
Fri Dec 12 15:59:16 UTC 2025


On Fri, 12 Dec 2025 15:46:08 GMT, Roberto Castañeda Lozano <rcastanedalo at openjdk.org> wrote:

>> Hi,
>> 
>> This PR is extracted from #28570 , `CallLeafPureNode`s do not read from or write to memory, so their `adr_type` should be `nullptr`.
>> 
>> Please take a look and leave your reviews, thanks a lot.
>
> Thanks for doing this! I reported [JDK-8367667](https://bugs.openjdk.org/browse/JDK-8367667) some time ago for adding verification code that checks address type consistency, so that we avoid introducing inconsistencies like this one. Feel free to grab it if you are interested.

@robcasloz Thanks for taking a look at this PR, you may want to check #28570 where I am trying to disambiguate `Node::adr_type` and insert verification for the memory graph.

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

PR Comment: https://git.openjdk.org/jdk/pull/28786#issuecomment-3647146124


More information about the hotspot-compiler-dev mailing list