From: Wolfgang M. M. <wol...@us...> - 2006-01-18 22:11:34
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/xquery In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8648/src/org/exist/xquery Modified Files: LocationStep.java Log Message: Fixed a memory leak introduced in 11/2005: normally, eXist should not cache more than the most recent 256 XQueries. Due to the bug, references to old queries were still held in memory though they were removed from the cache. If many different queries are sent to the db, memory consumption will keep growing slow but steadily. Index: LocationStep.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xquery/LocationStep.java,v retrieving revision 1.80 retrieving revision 1.81 diff -C2 -d -r1.80 -r1.81 *** LocationStep.java 17 Jan 2006 16:47:24 -0000 1.80 --- LocationStep.java 18 Jan 2006 22:11:26 -0000 1.81 *************** *** 770,784 **** */ public void resetState() { - // TODO : uncomment some comments ? super.resetState(); currentSet = null; currentDocs = null; - // listener = null; - // parent = null; cached = null; ! // parentDeps = Dependency.UNKNOWN_DEPENDENCY; ! // preload = false; ! // inUpdate = false; ! // nodeTestType = null; } --- 770,779 ---- */ public void resetState() { super.resetState(); currentSet = null; currentDocs = null; cached = null; ! deregisterUpdateListener(); ! listener = null; } |