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

Improve lazy computation in Locale

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • 25
    • core-libs
    • b02
    • generic
    • generic

      Locale has a few use sites that defer initialization. Lazy strategies such as CHM, nested static classes, and local inner classes are employed. These would all be better if replaced by StableValues.

      While Locale and BaseLocale can take advantage of SVs to simplify the caching mechanism, care needs to be taken to not introduce startup degradation. Particularly, with lambda usage.

            jlu Justin Lu
            jlu Justin Lu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: