[pypy-svn] r31654 - pypy/branch/no-zeroing-assumption/pypy/translator/c

mwh at codespeak.net mwh at codespeak.net
Fri Aug 25 18:55:59 CEST 2006


Author: mwh
Date: Fri Aug 25 18:55:58 2006
New Revision: 31654

Modified:
   pypy/branch/no-zeroing-assumption/pypy/translator/c/gc.py
Log:
(mwh, pedronis)
disable some code we're *almost* certain isn't needed.


Modified: pypy/branch/no-zeroing-assumption/pypy/translator/c/gc.py
==============================================================================
--- pypy/branch/no-zeroing-assumption/pypy/translator/c/gc.py	(original)
+++ pypy/branch/no-zeroing-assumption/pypy/translator/c/gc.py	Fri Aug 25 18:55:58 2006
@@ -402,10 +402,7 @@
         return defnode.db.gctransformer.gc_field_values_for(o)
 
     def zero_malloc(self, TYPE, esize, eresult):
-        assert TYPE._gckind == 'gc'   # we don't really support this
-        typename = self.db.gettype(TYPE)
-        erestype = cdecl(typename, '*')
-        return 'OP_ZERO_MALLOC(%s, %s, %s);' % (esize, eresult, erestype)
+        assert False, "a malloc operation in a framework build??"
 
     malloc = zero_malloc
 



More information about the Pypy-commit mailing list