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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.3.1
    • Affects Version/s: 1.3.0, 1.4.0
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: