[ 
https://issues.apache.org/jira/browse/XERCESJ-1430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13233171#comment-13233171
 ] 

Michael Glavassevich commented on XERCESJ-1430:
-----------------------------------------------

LongHua, the fix you've pointed out from Xerces-J 2.10.0 is unrelated to this 
JIRA issue. The patch attached to this particular issue still needs to be 
reviewed. It has not been committed yet.
                
> 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
>         Attachments: IdentifiersWeakValuePatch.txt
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to