On Wed, 28 Jan 2026 09:26:06 GMT, Tobias Hartmann <[email protected]> wrote:

>> Quan Anh Mai has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   remove unused variable
>
> src/hotspot/share/opto/inlinetypenode.hpp line 71:
> 
>> 69: 
>> 70:   // Initialize the inline type fields with the inputs or outputs of a 
>> MultiNode
>> 71:   void initialize_fields(GraphKit* kit, MultiNode* multi, uint& 
>> base_input, bool in, bool no_null_marker, Node* null_check_region, 
>> GrowableArray<ciType*>& visited);
> 
> Any particular reason that you renamed this? If so, the corresponding 
> argument of  `InlineTypeNode::make_from_multi` should be renamed as well. 
> Could we use something like `has_null_marker` instead to avoid the double 
> negation (`!no_null_marker`)?

The reason I decided to rename it is because it is kind of misleading, 
`null_free` only means the immediate field is null-free, the object can still 
be `null`. I am working on a patch to try cleaning up other places, too. 
`InlineTypeNode::make_from_multi` is correct in its parameter name `null_free`, 
because it is at the top level. Since all other similar variables in this file 
is in one direction, I think keeping it consistent would help reduce confusion.

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

PR Review Comment: 
https://git.openjdk.org/valhalla/pull/1970#discussion_r2736558120

Reply via email to