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

Improve lazy initialization of java.lang.invoke

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: