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

ObjectStreamClass can hold global lock for a very long time

    XMLWordPrintable

Details

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

    Backports

      Description

        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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: