RFR (S): 8000821: JSR 292: C1 fails to call virtual method (JRUBY-6920)
christian.thalinger at oracle.com
Wed Oct 17 14:55:55 PDT 2012
Thank you, Vladimir. -- Chris
On Oct 17, 2012, at 2:48 PM, Vladimir Kozlov <vladimir.kozlov at oracle.com> wrote:
> Christian Thalinger wrote:
>> 8000821: JSR 292: C1 fails to call virtual method (JRUBY-6920)
>> GraphBuilder::try_method_handle_inline calls GraphBuilder::try_inline
>> to inline the target of method handle calls. But try_inline doesn't
>> do CHA; GraphBuilder::invoke does that.
>> The easy fix for now without refactoring the whole logic in C1 (which
>> is not trivial, I tried) is to only inline static and statically
>> bindable methods for method handle calls. This shouldn't affect
>> performance since most methods are statically bindable and C2 doesn't
>> have this problem.
More information about the hotspot-compiler-dev