[pypy-svn] r70467 - pypy/trunk/pypy/translator/c

arigo at codespeak.net arigo at codespeak.net
Sat Jan 9 12:27:52 CET 2010


Author: arigo
Date: Sat Jan  9 12:27:51 2010
New Revision: 70467

Modified:
   pypy/trunk/pypy/translator/c/gc.py
Log:
Fix test_boehm: we cannot ignore keepalives in case of Boehm, because we
might be unlucky and at the C level the variable gets overridden with
another variable.  No clue why test_boehm started to fail now, though.


Modified: pypy/trunk/pypy/translator/c/gc.py
==============================================================================
--- pypy/trunk/pypy/translator/c/gc.py	(original)
+++ pypy/trunk/pypy/translator/c/gc.py	Sat Jan  9 12:27:51 2010
@@ -253,6 +253,9 @@
         nbytes = funcgen.expr(op.args[0])
         return 'GC_set_max_heap_size(%s);' % (nbytes,)
 
+    def GC_KEEPALIVE(self, funcgen, v):
+        return 'pypy_asm_keepalive(%s);' % funcgen.expr(v)
+
 class BoehmGcRuntimeTypeInfo_OpaqueNode(ContainerNode):
     nodekind = 'boehm rtti'
     globalcontainer = True



More information about the Pypy-commit mailing list