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

(cal) Calendar.cachedLocaleData should be transitioned from Hashtable to ConcurrentHashMap

XMLWordPrintable

    • b118
    • generic
    • generic
    • Not verified

        Calendar.cachedLocaleData is defined as a static Hashtable<Locale, int[]>(3). cachedLocaleData is accessed upon every Calender object allocation, i.e. via Calendar constructor. Hence, an application with high Calendar object allocations may experience lock contention since cachedLocaleData is shared across all Calendar object instances.

        Hence, cachedLocaleData should be migrated to a static ConcurrentHashMap<Locale, int[]>(3) to help elide lock contention.

              okutsu Masayoshi Okutsu
              huntch Charlie Hunt
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: