Memory leak: Elements with id attributes are not garbage collectable if the id
attribute is not removed.
--------------------------------------------------------------------------------------------------------
Key: XERCESJ-1430
URL: https://issues.apache.org/jira/browse/XERCESJ-1430
Project: Xerces2-J
Issue Type: Bug
Components: DOM (Level 3 Core)
Affects Versions: 2.9.1
Reporter: Ludger Bünger
Memoryleak:
Inside CoreDocumentImpl a HashTable resides that holds an id string to element
mapping.
If an element is removed from the DOM this Map is only updated if one also
removes the id attribute.
Thus the element is not garbage collectable.
Solution:
Use an Map implementation that holds only a weak reference to it's values.
See attached patch
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]