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

Ludger Bünger commented on XERCESJ-1299:
----------------------------------------

Hi Michael,

interestingly, I had the same idea too and had a patch flying around doing 
roughly the same as your solution.
I just never came along attaching it to this issue.

Since we iterate over the iterator list in any case, my solution did not do a 
prior full cleanup upon the iterator list each time removing the need for a 
ReferenceQueue and thus using the then slightly more performant ArrayList.

I don't know whether you are interested in this patch since the idea is 
essentially the same.

However I'll attach an equivalent patch for the range issue (issue #1300) I 
have "flying around" too.

> NodeIterators should be garbage collectable if the node iterators are not 
> referenced by the main application anymore.
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1299
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1299
>             Project: Xerces2-J
>          Issue Type: Improvement
>          Components: DOM (Level 2 Traversal & Range)
>    Affects Versions: 2.9.1
>            Reporter: Ludger Bünger
>            Assignee: Michael Glavassevich
>            Priority: Trivial
>             Fix For: 2.10.0
>
>         Attachments: WeakNodeIterator.txt
>
>
> NodeIterators should be garbage collectable if the node iterators are not 
> referenced by the main application anymore.

-- 
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]

Reply via email to