You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Henry Zongaro (JIRA)" <xa...@xml.apache.org> on 2006/01/03 15:39:07 UTC

[jira] Commented: (XALANJ-1673) "Memory leak" in xpath evaluations

    [ http://issues.apache.org/jira/browse/XALANJ-1673?page=comments#action_12361626 ] 

Henry Zongaro commented on XALANJ-1673:
---------------------------------------

Hari, the information you posted in http://issues.apache.org/jira/browse/XALANJ-1673#action_12361203 seems to describe a different problem from that described by this bug report.  Please open a separate bug report for the problem you describe, and provide a complete test case (stylesheets, input documents and Java source code) that can be used to reproduce the memory leak.

> "Memory leak" in xpath evaluations
> ----------------------------------
>
>          Key: XALANJ-1673
>          URL: http://issues.apache.org/jira/browse/XALANJ-1673
>      Project: XalanJ2
>         Type: Bug
>   Components: XPath
>     Versions: 2.5Dx
>  Environment: Operating System: Windows NT/2K
> Platform: PC
>     Reporter: Tim Butcher
>     Assignee: Xalan Developers Mailing List

>
> Java heap memory is used up whenever evaluating an xpath expression on a DOM 
> Document.
> The 'leakage' goes away if the following lines in the constructor  
> XPathResultImpl(short type, XObject result, Node contextNode)  
> (XPathResultImpl.java) are commented out:
> if (((m_resultType == XPathResult.ORDERED_NODE_ITERATOR_TYPE) ||
>     (m_resultType == XPathResult.UNORDERED_NODE_ITERATOR_TYPE))&&
>     (contextNode instanceof EventTarget)) {
>         ((EventTarget)contextNode).addEventListener("MutationEvents",this,true);
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org