Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8142334

Improve lazy initialization of java.lang.invoke

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • None
    • core-libs
    • b94
    • generic
    • generic

      java.lang.invoke use the pattern of a inner class Lazy to defer early initialization of some commonly used constants, which doesn't seem to actually be very lazy for a jigsaw Hello World.

      Moving to per-NamedFunction and -MethodHandle lazy initialization similar to the lazy initialization of Invokers.invokers defers substantial part of the startup overhead of the j.l.invoke infra hitting jigsaw runtimes.

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: