RFR: 8287223: C1: Inlining attempt through MH::invokeBasic() with null receiver [v3]

Vladimir Kozlov kvn at openjdk.java.net
Fri May 27 20:49:35 UTC 2022


On Fri, 27 May 2022 20:41:35 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:

>> Inlining attempt through `MH::invokeBasic()` when receiver is null. It triggers an assert when attempting to extract a `Method*` from a null constant.
>> 
>> Proposed fix bails out inlining attempt when receiver is null constant.
>> 
>> C2 has a similar issue, but the particular bytecode shape of `MH::invokeExact()` invoker hides the bug (dominating `MH::type()` call involves a null check and problematic call isn't compiled at all).  
>> 
>> Testing: hs-tier1 - hs-tier4
>
> Vladimir Ivanov has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Redundant import

Good.

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

Marked as reviewed by kvn (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/8894


More information about the hotspot-compiler-dev mailing list