RFR: 8307625: Redundant receiver null check in LibraryCallKit::generate_method_call [v3]
Eric Nothum
duke at openjdk.org
Wed Jun 28 07:04:06 UTC 2023
On Mon, 26 Jun 2023 13:05:13 GMT, Eric Nothum <duke at openjdk.org> wrote:
>> The null_check_receiver() calls in generate_method_call are redundant as all callers of generate_method_call already perform this check. For future uses of generate_method_call a new assert is introduced that fails if the caller does not null check the receiver.
>> Also generally null_check_receiver() should be combined with stopped(), which was not the case here.
>
> Eric Nothum has updated the pull request incrementally with one additional commit since the last revision:
>
> 8307625: adding null_check_receiver() for the uninitialized case, as else only argument(1) is null checked
Thanks for the clarifications and reviews!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14542#issuecomment-1610877642
More information about the hotspot-compiler-dev
mailing list