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

sun.invoke.util.Wrapper eagerly initializes all integral type caches

    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:
      b93
    • CPU:
      generic
    • OS:
      generic

      Description

      During jake startup, all primitive integral type caches (Byte$ByteCache, Short$ShortCache, Long$LongCache) are initialized by virtue of Wrapper needing a handle to the zero constant of each object type.

      Making a ZERO constant available internally without initializing the entire cache improves startup and footprint of jigsaw.

        Attachments

          Issue Links

            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: