RFR: Direct LambdaMetaFactory invocation from CallSite significantly improves lambda linkage performance
sergey.kuksenko at oracle.com
Wed Sep 11 09:53:56 PDT 2013
> On 09/11/2013 08:23 PM, Sergey Kuksenko wrote:
> * webrev metadata: "invokation" -> "invocation"
misprint. Should I fix it right now, or may it be done later?
> * Why $caller is MethodHandles.Lookup now? Is it known to have that type?
MethodHandles.Lookup is return type of IMPL_LOOKUP.in()
> * I would put the entire LMF.metafactory call inside the new method.
> That way, instanceof checks are right before the (otherwise potentially
> unsafe) casts.
At that case the single method should return two values: boolean flag
success/failure and CallSite.
>> The modification gives +10% - +35% to lambda linkage performance
>> (depends on amount of lambdas).
> Any JSR292/Nashorn benchmarks to prove it does not degrade the "usual"
> bootstrap scenarios? I understand most of the performance is dominated
> by already-linked sites, but still.
I check it on octane - no perf difference. But I need somebody to
recheck my measurements.
More information about the hotspot-compiler-dev