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

ObjectStreamClass can hold global lock for a very long time

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.2.2_012
    • 1.2.0, 1.2.2
    • core-libs

        ObjectStreamClass has a global descriptorFor that all calls to lookupInternal synchronize on. The code executed inside this synchronized can cause classes to be loaded, from arbitrary URLs with arbitrary network delays. If one thread is stuck in this synchronized block attempting to read from a slow or non-responsive network connection, then all other threads that are attempting to serialize or deserialize are also stuck for the duration. This can be a serious performance limitation for RMI.

              mwarressunw Michael Warres (Inactive)
              bscheiflsunw Bob Scheifler (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: