[pypy-svn] r17195 - pypy/dist/pypy/translator/c
tismer at codespeak.net
tismer at codespeak.net
Sun Sep 4 01:48:51 CEST 2005
Author: tismer
Date: Sun Sep 4 01:48:50 2005
New Revision: 17195
Modified:
pypy/dist/pypy/translator/c/gc.py
Log:
corrected an unintended change (zero_malloc does not yieldbut return)
so boehm was broke for a while.
Seems to be a crossing of changes, return had been introduced in
rev. 17041, already.
Modified: pypy/dist/pypy/translator/c/gc.py
==============================================================================
--- pypy/dist/pypy/translator/c/gc.py (original)
+++ pypy/dist/pypy/translator/c/gc.py Sun Sep 4 01:48:50 2005
@@ -338,13 +338,13 @@
gcinfo = self.db.gettypedefnode(TYPE).gcinfo
atomic = ['','_ATOMIC'][TYPE._is_atomic()]
if gcinfo and gcinfo.finalizer:
- yield 'OP_BOEHM_ZERO_MALLOC_FINALIZER(%s, %s, %s, %s, %s);' % (esize,
+ return 'OP_BOEHM_ZERO_MALLOC_FINALIZER(%s, %s, %s, %s, %s);' % (esize,
eresult,
atomic,
gcinfo.finalizer,
err)
else:
- yield 'OP_BOEHM_ZERO_MALLOC(%s, %s, %s, %s);' % (esize,
+ return 'OP_BOEHM_ZERO_MALLOC(%s, %s, %s, %s);' % (esize,
eresult,
atomic,
err)
More information about the Pypy-commit
mailing list