RFR: 8164569: Generate non-customized invoker forms at link time

Claes Redestad claes.redestad at oracle.com
Tue Aug 23 08:57:34 UTC 2016


Hi,

this patch adds configurable link-time generation of the invoker forms. 
Some such forms is commonly used early on in even the simplest startup 
tests, and an unbounded number of invoker forms can be generated in more 
complex cases.

Bug: https://bugs.openjdk.java.net/browse/JDK-8164569
Webrev: http://cr.openjdk.java.net/~redestad/8164569/webrev.01/

Together with JDK-8164483 (which I've tested together with this) this 
removes all class generation from runtime in the tests associated with 
JDK-8086045

I'd also note that the default setting in this patch is rather 
arbitrary: although it removes a handful of invokers in a number of 
tests, it's admittedly complicated to detect which ones are needed (same 
goes for already implemented options to select 
Direct-/DelegatingMethodHandles and BoundMethodHandle$Species_*). The 
plan is to implement JDK-8163371 in such a way that running a 
application with a tracing flag enabled will produce a file to use as 
the sole input to --generate-jli-classes.

Thanks!

/Claes


More information about the core-libs-dev mailing list