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

java.util.Locale.getDefault is synchronized

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.2.0
    • 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).

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: