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

Avoid initializing ShortCache in ProxyGenerator

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11
    • Component/s: core-libs

      Description

      jlr.ProxyGenerator uses a Map<Object, Short> to remember indexes to constant pool entries. Using a Map<Object, Integer> instead maintains semantics while avoiding initializing jl.Short$ShortCache (6+Kb, measurable startup hit).

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: