From: Finn B. <bc...@us...> - 2001-08-19 14:45:59
|
Update of /cvsroot/jython/jython/org/python/compiler In directory usw-pr-cvs1:/tmp/cvs-serv12090 Modified Files: CodeCompiler.java Log Message: Clear the reference stored in the tmp local. This lingering reference to the last value involved in an assignment statement would prevent timely garbage collection. The problem became visible while testing the _weakref module. Index: CodeCompiler.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/compiler/CodeCompiler.java,v retrieving revision 2.17 retrieving revision 2.18 diff -C2 -d -r2.17 -r2.18 *** CodeCompiler.java 2001/08/13 18:25:00 2.17 --- CodeCompiler.java 2001/08/19 14:45:56 2.18 *************** *** 105,108 **** --- 105,110 ---- int tmp = storeTop(); set(node, tmp); + code.aconst_null(); + code.astore(tmp); code.freeLocal(tmp); } |