Update of /cvsroot/nice/Nice/src/bossa/modules
In directory sc8-pr-cvs1:/tmp/cvs-serv1890/src/bossa/modules
Modified Files:
Package.java
Log Message:
Make sure that definitions are not added after the AST has been constructed,
since they would be ignored anyway. Also allow the memory to be reclaimed.
Index: Package.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/modules/Package.java,v
retrieving revision 1.107
retrieving revision 1.108
diff -C2 -d -r1.107 -r1.108
*** Package.java 15 Dec 2003 02:40:17 -0000 1.107
--- Package.java 16 Dec 2003 07:44:08 -0000 1.108
***************
*** 124,127 ****
--- 124,128 ----
source.getDefinitions(definitions, shouldReload);
this.ast = new AST(this, definitions);
+ definitions = null;
compilation.addNumberOfDeclarations(ast.numberOfDeclarations());
|