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

1.4:ObjectOutputStream.reset() does not clear strong refs to written objects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.3.1
    • 1.3.0, 1.4.0
    • core-libs
    • None
    • ladybird
    • generic
    • generic
    • Verified

        Calling ObjectOutputStream.reset() does not clear strong references to
        previously written objects as it should. It calls HandleTable.clear(), which
        resets the hash table properly but does not reinitialize the wireHandle2Object
        array, which contains strong references to all objects in the table.

        This means that previously serialized objects will become reclaimable by the
        garbage collector only after the ObjectOutputStream itself becomes reclaimable,
        or when the reference in the wireHandle2Object array is overwritten by a new
        handle table insertion.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: