RFR (S): 8058892: FILL_ARRAYS and ARRAYS are eagely initialized in MethodHandleImpl
vladimir.x.ivanov at oracle.com
Thu Oct 2 16:55:12 UTC 2014
Need to reorder initialization sequence in MHI.Lazy. Initialized
FILL_ARRAYS and ARRAYS are required for later MH lookups.
* jck (api/java_lang/invoke)
* jdk/java/lang/invoke, jdk/java/util/streams w/ "-ea -esa" and
On 10/2/14, 7:52 PM, Vladimir Ivanov wrote:
> Core j.l.i classes are preloaded during VM startup in order to avoid
> possible deadlock when accessing JSR292-related functionality from
> multiple threads. After LF sharing-related changes, FILL_ARRAYS and
> ARRAYS are initialized too early. It affects startup time & footprint of
> applications that don't use JSR292.
> The fix is to move these fields into MHI.Lazy class, thus delaying their
> initialization to the first usage of JSR292 API.
> Testing: failing test, manual (measured HelloWorld app startup time;
> compared -XX:+PrintCompilation logs)
> Best regards,
> Vladimir Ivanov
More information about the core-libs-dev