[
https://issues.apache.org/jira/browse/GROOVY-11935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Sun updated GROOVY-11935:
--------------------------------
Description: When a invokedynamic call resolves to static call, the call
site currently waits for normal PIC warmup(i.e. wait for the 1,000-hit
threshold) before setting the optimized target. This delays JIT inlining for
static calls such as {{{}A.foo(){}}}. Set invokedynamic call site target
immediately to enable earlier JIT inlining. (was: When a invokedynamic call
resolves to a method on a receiver of {{final}} type, the call site currently
waits for normal PIC warmup(i.e. wait for the 1,000-hit threshold) before
setting the optimized target. This delays JIT inlining for stable calls such as
{{A.foo()}}, {{'abc'.toUpperCase()}}, etc. Set invokedynamic call site target
immediately to enable earlier JIT inlining.)
> Set invokedynamic call site target immediately to enable earlier JIT inlining
> -----------------------------------------------------------------------------
>
> Key: GROOVY-11935
> URL: https://issues.apache.org/jira/browse/GROOVY-11935
> Project: Groovy
> Issue Type: Improvement
> Reporter: Daniel Sun
> Priority: Major
>
> When a invokedynamic call resolves to static call, the call site currently
> waits for normal PIC warmup(i.e. wait for the 1,000-hit threshold) before
> setting the optimized target. This delays JIT inlining for static calls such
> as {{{}A.foo(){}}}. Set invokedynamic call site target immediately to enable
> earlier JIT inlining.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)