You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Ludger Bünger (JIRA)" <xe...@xml.apache.org> on 2008/04/07 15:18:29 UTC
[jira] Created: (XERCESJ-1298) User data for a node should be
garbage collectable if the node itself is garbage collected.
User data for a node should be garbage collectable if the node itself is garbage collected.
-------------------------------------------------------------------------------------------
Key: XERCESJ-1298
URL: https://issues.apache.org/jira/browse/XERCESJ-1298
Project: Xerces2-J
Issue Type: Improvement
Components: DOM (Level 3 Core)
Affects Versions: 2.9.1
Reporter: Ludger Bünger
Attachments: WeakUserDataPatch.txt
User data for a node should be garbage collectable if the node itself is garbage collected.
Currently user data will remain referenced -even if the node itself is garbage collected- until the Document node itself is garbage collected.
--
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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org
[jira] Resolved: (XERCESJ-1298) User data for a node should be
garbage collectable if the node itself is garbage collected.
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESJ-1298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Glavassevich resolved XERCESJ-1298.
-------------------------------------------
Resolution: Fixed
Thanks Ludger. I've committed your patch to SVN with some modifications [1] to preserve object serialization compatibility with previous versions of Xerces. As you can see, not quite as simple as changing the type of the field from Hashtable to WeakHashMap.
[1] http://svn.apache.org/viewvc?view=rev&revision=695558
> User data for a node should be garbage collectable if the node itself is garbage collected.
> -------------------------------------------------------------------------------------------
>
> Key: XERCESJ-1298
> URL: https://issues.apache.org/jira/browse/XERCESJ-1298
> Project: Xerces2-J
> Issue Type: Improvement
> Components: DOM (Level 3 Core)
> Affects Versions: 2.9.1
> Reporter: Ludger Bünger
> Assignee: Michael Glavassevich
> Priority: Trivial
> Attachments: WeakUserDataPatch.txt
>
>
> User data for a node should be garbage collectable if the node itself is garbage collected.
> Currently user data will remain referenced -even if the node itself is garbage collected- until the Document node itself is garbage collected.
--
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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org
[jira] Updated: (XERCESJ-1298) User data for a node should be
garbage collectable if the node itself is garbage collected.
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESJ-1298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Glavassevich updated XERCESJ-1298:
------------------------------------------
Fix Version/s: 2.10.0
> User data for a node should be garbage collectable if the node itself is garbage collected.
> -------------------------------------------------------------------------------------------
>
> Key: XERCESJ-1298
> URL: https://issues.apache.org/jira/browse/XERCESJ-1298
> Project: Xerces2-J
> Issue Type: Improvement
> Components: DOM (Level 3 Core)
> Affects Versions: 2.9.1
> Reporter: Ludger Bünger
> Assignee: Michael Glavassevich
> Priority: Trivial
> Fix For: 2.10.0
>
> Attachments: WeakUserDataPatch.txt
>
>
> User data for a node should be garbage collectable if the node itself is garbage collected.
> Currently user data will remain referenced -even if the node itself is garbage collected- until the Document node itself is garbage collected.
--
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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org
[jira] Assigned: (XERCESJ-1298) User data for a node should be
garbage collectable if the node itself is garbage collected.
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESJ-1298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Glavassevich reassigned XERCESJ-1298:
---------------------------------------------
Assignee: Michael Glavassevich
> User data for a node should be garbage collectable if the node itself is garbage collected.
> -------------------------------------------------------------------------------------------
>
> Key: XERCESJ-1298
> URL: https://issues.apache.org/jira/browse/XERCESJ-1298
> Project: Xerces2-J
> Issue Type: Improvement
> Components: DOM (Level 3 Core)
> Affects Versions: 2.9.1
> Reporter: Ludger Bünger
> Assignee: Michael Glavassevich
> Priority: Trivial
> Attachments: WeakUserDataPatch.txt
>
>
> User data for a node should be garbage collectable if the node itself is garbage collected.
> Currently user data will remain referenced -even if the node itself is garbage collected- until the Document node itself is garbage collected.
--
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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org
[jira] Updated: (XERCESJ-1298) User data for a node should be
garbage collectable if the node itself is garbage collected.
Posted by "Ludger Bünger (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESJ-1298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ludger Bünger updated XERCESJ-1298:
-----------------------------------
Attachment: WeakUserDataPatch.txt
This patch will store userdata in a weak hashmap instead of a hash table allowing garbage collection of the user data if the node itself is garbage collected.
> User data for a node should be garbage collectable if the node itself is garbage collected.
> -------------------------------------------------------------------------------------------
>
> Key: XERCESJ-1298
> URL: https://issues.apache.org/jira/browse/XERCESJ-1298
> Project: Xerces2-J
> Issue Type: Improvement
> Components: DOM (Level 3 Core)
> Affects Versions: 2.9.1
> Reporter: Ludger Bünger
> Attachments: WeakUserDataPatch.txt
>
>
> User data for a node should be garbage collectable if the node itself is garbage collected.
> Currently user data will remain referenced -even if the node itself is garbage collected- until the Document node itself is garbage collected.
--
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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org
[jira] Updated: (XERCESJ-1298) User data for a node should be
garbage collectable if the node itself is garbage collected.
Posted by "Ludger Bünger (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESJ-1298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ludger Bünger updated XERCESJ-1298:
-----------------------------------
Priority: Trivial (was: Major)
> User data for a node should be garbage collectable if the node itself is garbage collected.
> -------------------------------------------------------------------------------------------
>
> Key: XERCESJ-1298
> URL: https://issues.apache.org/jira/browse/XERCESJ-1298
> Project: Xerces2-J
> Issue Type: Improvement
> Components: DOM (Level 3 Core)
> Affects Versions: 2.9.1
> Reporter: Ludger Bünger
> Priority: Trivial
> Attachments: WeakUserDataPatch.txt
>
>
> User data for a node should be garbage collectable if the node itself is garbage collected.
> Currently user data will remain referenced -even if the node itself is garbage collected- until the Document node itself is garbage collected.
--
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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org