You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by aj...@apache.org on 2004/05/05 14:59:38 UTC
cvs commit: gump/python/gump/test utils.py
ajack 2004/05/05 05:59:38
Modified: python/gump/document/forrest xdoc.py
python/gump/utils __init__.py
python/gump/test utils.py
Log:
See if calling garbage collector helps memory growth/hang on CSM.
Revision Changes Path
1.8 +1 -0 gump/python/gump/document/forrest/xdoc.py
Index: xdoc.py
===================================================================
RCS file: /home/cvs/gump/python/gump/document/forrest/xdoc.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- xdoc.py 4 May 2004 15:12:52 -0000 1.7
+++ xdoc.py 5 May 2004 12:59:38 -0000 1.8
@@ -191,6 +191,7 @@
# Probably ought do this higher up
self.unlink()
+ invokeGarbageCollection()
def callStart(self,piece=None):
if not piece: piece = self
1.36 +6 -1 gump/python/gump/utils/__init__.py
Index: __init__.py
===================================================================
RCS file: /home/cvs/gump/python/gump/utils/__init__.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- __init__.py 30 Apr 2004 19:22:34 -0000 1.35
+++ __init__.py 5 May 2004 12:59:38 -0000 1.36
@@ -397,4 +397,9 @@
# log.error("Failed get resource utilization." \
# + " : " + str(details), exc_info=1)
-
+def invokeGarbageCollection():
+ try:
+ import gc
+ gc.collect()
+ except:
+ raise
1.9 +3 -0 gump/python/gump/test/utils.py
Index: utils.py
===================================================================
RCS file: /home/cvs/gump/python/gump/test/utils.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- utils.py 16 Apr 2004 17:28:35 -0000 1.8
+++ utils.py 5 May 2004 12:59:38 -0000 1.9
@@ -116,5 +116,8 @@
def testUnicode(self):
getStringFromUnicode("Ceki G�lc�")
+
+ def testGarbageCollection(self):
+ invokeGarbageCollection()
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org