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

Vladimir Ivanov vlivanov at openjdk.java.net
Fri May 27 20:41:35 UTC 2022


> 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

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/8894/files
  - new: https://git.openjdk.java.net/jdk/pull/8894/files/eaae7537..7ff642f4

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8894&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8894&range=01-02

  Stats: 1 line in 1 file changed: 0 ins; 1 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8894.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8894/head:pull/8894

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


More information about the hotspot-compiler-dev mailing list