Update of /cvsroot/nice/Nice/src/bossa/modules
In directory sc8-pr-cvs1:/tmp/cvs-serv18693/src/bossa/modules
Modified Files:
Package.java
Log Message:
Allow AST and compiled code to be garbage collected earlier, which
significantly reduces peak memory usage.
Index: Package.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/modules/Package.java,v
retrieving revision 1.105
retrieving revision 1.106
diff -C2 -d -r1.105 -r1.106
*** Package.java 27 Nov 2003 14:57:56 -0000 1.105
--- Package.java 27 Nov 2003 15:23:11 -0000 1.106
***************
*** 401,404 ****
--- 401,408 ----
res = thisPkg;
+ // Allow memory to be reclaimed early.
+ thisPkg = null;
+ ast = null;
+
for (Iterator i = getImports().iterator(); i.hasNext();)
res = ((Package) i.next()).compilePackages(res);
|