[pypy-svn] r23054 - pypy/branch/genc-gc-refactoring
cfbolz at codespeak.net
cfbolz at codespeak.net
Sun Feb 5 23:13:57 CET 2006
Author: cfbolz
Date: Sun Feb 5 23:13:56 2006
New Revision: 23054
Modified:
pypy/branch/genc-gc-refactoring/gc.py
Log:
small comment improvement
Modified: pypy/branch/genc-gc-refactoring/gc.py
==============================================================================
--- pypy/branch/genc-gc-refactoring/gc.py (original)
+++ pypy/branch/genc-gc-refactoring/gc.py Sun Feb 5 23:13:56 2006
@@ -209,7 +209,9 @@
if gcinfo.destructor:
yield "\t%s((%s) p);" % (gcinfo.destructor,
cdecl(gcinfo.destructor_argtype, ''))
- # insert decrefs to objects we have a reference to
+ # decref the refcount. if it is zero (e.g. the object was not
+ # resurrected by the __del__), decref all objects we have a
+ # reference to
yield '\tif (!--p->%s) {' % (structdefnode.gcheader,)
for line in self.deallocator_lines(structdefnode, '(*p)'):
yield '\t\t' + line
More information about the Pypy-commit
mailing list