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

ClassLoader incorrectly synchronizes access to defaultDomain

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • beta2
    • generic
    • generic
    • Verified

      In java.lang.ClassLoader defaultDomain is an instance field
      yet in the method getDefaultDomain() synchronizes on ClassLoader.class.

      Also The "double-check" idiom used on defaultDomain in this method violates correct synchronization semantics, and can fail on multiprocessor JVMs.

            gellisonsunw Gary Ellison (Inactive)
            gellisonsunw Gary Ellison (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: