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

ObjectStreamClass can hold global lock for a very long time

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.2.0, 1.2.2
    • Fix Version/s: 1.2.2_012
    • Component/s: core-libs
    • Labels:

      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: