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 2009/01/06 18:14:44 UTC

[jira] Created: (XERCESJ-1356) Memory Leak: Nodes for whom node numbers have been determined are not garbage collectible anymore.

Memory Leak: Nodes for whom node numbers have been determined are not garbage collectible anymore.
--------------------------------------------------------------------------------------------------

                 Key: XERCESJ-1356
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1356
             Project: Xerces2-J
          Issue Type: Improvement
          Components: DOM (Level 3 Core)
    Affects Versions: 2.9.1
            Reporter: Ludger Bünger
         Attachments: WeakNodeNumberPatch.txt

Memory leak: Nodes for whom a node number has been determined using the getNodeNumber() method (used by compareDocumentPosition) are hold in a global hashtable and thus not not garbage collectible.

See provided patch for a fix.

-- 
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-1356) Memory Leak: Nodes for whom node numbers have been determined are not garbage collectible anymore.

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich reassigned XERCESJ-1356:
---------------------------------------------

    Assignee: Michael Glavassevich

> Memory Leak: Nodes for whom node numbers have been determined are not garbage collectible anymore.
> --------------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1356
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1356
>             Project: Xerces2-J
>          Issue Type: Improvement
>          Components: DOM (Level 3 Core)
>    Affects Versions: 2.9.1
>            Reporter: Ludger Bünger
>            Assignee: Michael Glavassevich
>         Attachments: WeakNodeNumberPatch.txt
>
>
> Memory leak: Nodes for whom a node number has been determined using the getNodeNumber() method (used by compareDocumentPosition) are hold in a global hashtable and thus not not garbage collectible.
> See provided patch for a fix.

-- 
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-1356) Memory Leak: Nodes for whom node numbers have been determined are not garbage collectible anymore.

Posted by "Ludger Bünger (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ludger Bünger updated XERCESJ-1356:
-----------------------------------

    Attachment: WeakNodeNumberPatch.txt

Thanks, Nathan for pointing this out.

Here another patch correctly serializing the Map without using the transient keyword and maintaining serialization compatibility to previous versions of xerces.


> Memory Leak: Nodes for whom node numbers have been determined are not garbage collectible anymore.
> --------------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1356
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1356
>             Project: Xerces2-J
>          Issue Type: Improvement
>          Components: DOM (Level 3 Core)
>    Affects Versions: 2.9.1
>            Reporter: Ludger Bünger
>         Attachments: WeakNodeNumberPatch.txt, WeakNodeNumberPatch.txt
>
>
> Memory leak: Nodes for whom a node number has been determined using the getNodeNumber() method (used by compareDocumentPosition) are hold in a global hashtable and thus not not garbage collectible.
> See provided patch for a fix.

-- 
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-1356) Memory Leak: Nodes for whom node numbers have been determined are not garbage collectible anymore.

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich resolved XERCESJ-1356.
-------------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.10.0

Ludger, thanks for your contribution. I've committed your patch. See SVN rev 890172.

> Memory Leak: Nodes for whom node numbers have been determined are not garbage collectible anymore.
> --------------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1356
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1356
>             Project: Xerces2-J
>          Issue Type: Improvement
>          Components: DOM (Level 3 Core)
>    Affects Versions: 2.9.1
>            Reporter: Ludger Bünger
>            Assignee: Michael Glavassevich
>             Fix For: 2.10.0
>
>         Attachments: WeakNodeNumberPatch.txt
>
>
> Memory leak: Nodes for whom a node number has been determined using the getNodeNumber() method (used by compareDocumentPosition) are hold in a global hashtable and thus not not garbage collectible.
> See provided patch for a fix.

-- 
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-1356) Memory Leak: Nodes for whom node numbers have been determined are not garbage collectible anymore.

Posted by "Ludger Bünger (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ludger Bünger updated XERCESJ-1356:
-----------------------------------

    Attachment: WeakNodeNumberPatch.txt

> Memory Leak: Nodes for whom node numbers have been determined are not garbage collectible anymore.
> --------------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1356
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1356
>             Project: Xerces2-J
>          Issue Type: Improvement
>          Components: DOM (Level 3 Core)
>    Affects Versions: 2.9.1
>            Reporter: Ludger Bünger
>         Attachments: WeakNodeNumberPatch.txt
>
>
> Memory leak: Nodes for whom a node number has been determined using the getNodeNumber() method (used by compareDocumentPosition) are hold in a global hashtable and thus not not garbage collectible.
> See provided patch for a fix.

-- 
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] Commented: (XERCESJ-1356) Memory Leak: Nodes for whom node numbers have been determined are not garbage collectible anymore.

Posted by "Nathan Beyer (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661418#action_12661418 ] 

Nathan Beyer commented on XERCESJ-1356:
---------------------------------------

Why does the patch make the fields transient?

> Memory Leak: Nodes for whom node numbers have been determined are not garbage collectible anymore.
> --------------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1356
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1356
>             Project: Xerces2-J
>          Issue Type: Improvement
>          Components: DOM (Level 3 Core)
>    Affects Versions: 2.9.1
>            Reporter: Ludger Bünger
>         Attachments: WeakNodeNumberPatch.txt
>
>
> Memory leak: Nodes for whom a node number has been determined using the getNodeNumber() method (used by compareDocumentPosition) are hold in a global hashtable and thus not not garbage collectible.
> See provided patch for a fix.

-- 
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-1356) Memory Leak: Nodes for whom node numbers have been determined are not garbage collectible anymore.

Posted by "Ludger Bünger (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ludger Bünger updated XERCESJ-1356:
-----------------------------------

    Attachment:     (was: WeakNodeNumberPatch.txt)

> Memory Leak: Nodes for whom node numbers have been determined are not garbage collectible anymore.
> --------------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1356
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1356
>             Project: Xerces2-J
>          Issue Type: Improvement
>          Components: DOM (Level 3 Core)
>    Affects Versions: 2.9.1
>            Reporter: Ludger Bünger
>         Attachments: WeakNodeNumberPatch.txt
>
>
> Memory leak: Nodes for whom a node number has been determined using the getNodeNumber() method (used by compareDocumentPosition) are hold in a global hashtable and thus not not garbage collectible.
> See provided patch for a fix.

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