Integrated: 8267807: C2: Downcast receiver to target holder during inlining

Vladimir Ivanov vlivanov at openjdk.java.net
Tue Jun 1 12:06:23 UTC 2021


On Wed, 26 May 2021 17:58:52 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:

> Virtual method calls involve an implicit subtype check against callee holder. 
> But if receiver type is too broad, it has to be narrowed before parsing the callee method.
> Otherwise, it may cause problems during parsing and currently it simply blocks inlining. 
> 
> Proposed fix implements the narrowing step and re-enables inlining.
> 
> Testing:
> - [x] hs-tier1 - hs-tier9

This pull request has now been integrated.

Changeset: 68f3b3ac
Author:    Vladimir Ivanov <vlivanov at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/68f3b3acce0393aa9c91878f7ad848d4a41a2fe1
Stats:     86 lines in 2 files changed: 43 ins; 18 del; 25 mod

8267807: C2: Downcast receiver to target holder during inlining

Reviewed-by: roland, thartmann

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

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


More information about the hotspot-compiler-dev mailing list