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

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

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: