RFR: 8327963: C2: fix construction of memory graph around Initialize node to prevent incorrect execution if allocation is removed [v15]

Roland Westrelin roland at openjdk.org
Tue Nov 4 08:47:52 UTC 2025


On Tue, 4 Nov 2025 07:20:49 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

>> src/hotspot/share/opto/multnode.hpp line 215:
>> 
>>> 213:   }
>>> 214: public:
>>> 215:   NarrowMemProjNode(Node* src, const TypePtr* adr_type)
>> 
>> Can you feed it any other `src` than a `InitializeNode*`?
>> Suggestion:
>> 
>>   NarrowMemProjNode(InitializeNode* src, const TypePtr* adr_type)
>
> @rwestrel Do you not like this suggestion?

I thought I took care of that one but obviously not. Done now. It requires moving the definition in the cpp file.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24570#discussion_r2489266971


More information about the hotspot-compiler-dev mailing list