Improve lazy initialization of java.lang.invoke

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: