[10] RFR: 8178384: Reduce work in java.lang.invoke initializers

Paul Sandoz paul.sandoz at oracle.com
Mon Apr 10 16:18:07 UTC 2017


+1

These named functions really wanna be LDC’ed but i suspect using constant dynamic + representation in source (when available) might result in it’s own bootstrap issues, still it would be interesting to try when available.

Paul.

> On 10 Apr 2017, at 07:09, Claes Redestad <claes.redestad at oracle.com> wrote:
> 
> Hi,
> 
> profiling initializers in java.lang.invoke shows we're still doing various things during
> class initialization which could be done lazily or not at all. The proposed patch
> reduce bytecode executed, memory churn and retained heap footprint when
> initializing java.lang.invoke:
> 
> Webrev: http://cr.openjdk.java.net/~redestad/8178384/jdk.01/
> Bug: https://bugs.openjdk.java.net/browse/JDK-8178384
> 
> Testing: java.lang.invoke jtreg tests, sanity performance testing
> 
> Thanks!
> 
> /Claes



More information about the core-libs-dev mailing list