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

Replace use of lambda/method ref in jdk.Version constructor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 9
    • 9
    • core-libs
    • b109

    Description

      Since JDK-8150163, jdk.Version can now be used earlier in startup, but not always. It was noticed that the use of
      lambda / method ref in the constructor, in some cases, was the first usage of such, and incurred the initialization costs
      of the java.lang.invoke infrastructure ( which can take a significant amount of time on first access).

      The solution is to simple avoid the usage, as has been done in other "core" areas, that may be used early in startup.

      Attachments

        Issue Links

          Activity

            People

              chegar Chris Hegarty
              chegar Chris Hegarty
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: