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

Minor startup cleanup of CallSite and MethodType

XMLWordPrintable

    • b154
    • Not verified

        As a follow-up to JDK-8086045, analysis has found a number of small, simple improvements that can be made to further improve startup characteristics of java.lang.invoke.CallSite and MethodType:

        - CallSite::<clinit> looks up two MethodHandles that aren't used in many typical applications
        - CallSite.CONTEXT_OFFSET calculated but never used
        - The ConcurrentHashMap in MethodType$ConcurrentWeakInternSet is resized multiple times even for relatively trivial tests, and initializing it to a larger size is footprint neutral but beneficial to startup for most users

        This small set of non-intrusive changes has a measurable impact to startup, which partially help with a number of startup regressions seen in 9.

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

                Created:
                Updated:
                Resolved: