java.util.Locale.getDefault is synchronized

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 1.2.0
    • Component/s: core-libs
    • sparc
    • solaris_2.5.1



      Name: ccC48265 Date: 12/23/97


      The method java.util.Locale.getDefault() is a static synchronized method
      and thus is a central bottle neck for all processing that requires a Locale.

      I checked out the source code and one could recode this section of code
      so the getDefault method is not synchronized.

      e.g. Pull out of the code sequence if defaultLocale is null into another
      private method and synchronize that.

      It's easy to fix and should help out on performance for server-side Java.

      (Review ID: 22360)
      =================================================================
      ###@###.### (Dec 23, 1997):
      See also related bug 4101182 (submitted by the same person).

      ======================================================================

            Assignee:
            Unassigned
            Reporter:
            Claudette Cresswell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: