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

Improve lazy initialization of java.lang.invoke

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b94
    • CPU:
      generic
    • OS:
      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

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

              Dates

              Created:
              Updated:
              Resolved: