Looking for Sponsor: JDK-8229959 Convert proxy class to use constant dynamic

Brian Goetz brian.goetz at oracle.com
Sat Nov 23 21:40:23 UTC 2019


>
> Finally, we can benchmark the current approach against the LDC 
> approach on a per-Method basis.  The LDC approach may well be doing 
> more work per Method, so it's a tradeoff to determine whether 
> deferring that work is a win.

By this last bit, I mean JMH'ing:

     Method m1() {
        return Class.forName("java.lang.Object").getMethod("equals", new 
Class[] { Class.forName("java.lang.Object") });
     }

vs

     Method m2() {
         return bootstrap(... constant bootstrap args for above ...)
     }




More information about the core-libs-dev mailing list