You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by ig...@apache.org on 2004/04/26 20:01:33 UTC

cvs commit: xml-xalan/java/src/org/apache/xpath XPathContext.java

igorh       2004/04/26 11:01:32

  Modified:    java/src/org/apache/xpath/objects XRTreeFrag.java
               java/src/org/apache/xpath XPathContext.java
  Added:       java/src/org/apache/xpath/objects DTMXRTreeFrag.java
  Log:
  The problem is that about 1800 * Thread_num  XRTreeFrag  objects were created. 
  It took too long for finalizer to be executed to release the references.
  
  A lot of the objects have the same DTMs (and one XPathContext per thread).
  In my fix I am suggesting 
  a. to have new class DTMXRTreeFrag. The object of the class would 
  be created only for different DTMs (just 5 objects). 
  b. release the references to  DTM and XPathContext from XPathContext.reset()
  (and remove finalize() ).
  
  Revision  Changes    Path
  1.31      +301 -384  xml-xalan/java/src/org/apache/xpath/objects/XRTreeFrag.java
  
  http://cvs.apache.org/viewcvs/xml-xalan/java/src/org/apache/xpath/objects/XRTreeFrag.java.diff?r1=1.30&r2=1.31
  
  
  1.1                  xml-xalan/java/src/org/apache/xpath/objects/DTMXRTreeFrag.java
  
  http://cvs.apache.org/viewcvs/xml-xalan/java/src/org/apache/xpath/objects/DTMXRTreeFrag.java?rev=1.1
  
  
  1.53      +1308 -1259xml-xalan/java/src/org/apache/xpath/XPathContext.java
  
  http://cvs.apache.org/viewcvs/xml-xalan/java/src/org/apache/xpath/XPathContext.java.diff?r1=1.52&r2=1.53
  
  

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