[
https://issues.apache.org/jira/browse/XERCESJ-1430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13229963#comment-13229963
]
LongHua Huang commented on XERCESJ-1430:
----------------------------------------
Hi Ludger,
Is this issue fixed in 2.10? Is it the same issue as mentioned in the following
2.10 release notes? Thanks in advance.
Fixed a bug in the DOM implementation where a static text Node field in
AttrImpl broke thread-safety of mutations in independent documents from within
an event listener. This was also a potential memory leak. [Ludger Bünger]
> 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]