[pypy-svn] r79608 - in pypy/branch/jit-free-asm/pypy/jit/backend/llsupport: . test

arigo at codespeak.net arigo at codespeak.net
Sun Nov 28 13:54:46 CET 2010


Author: arigo
Date: Sun Nov 28 13:54:43 2010
New Revision: 79608

Modified:
   pypy/branch/jit-free-asm/pypy/jit/backend/llsupport/gc.py
   pypy/branch/jit-free-asm/pypy/jit/backend/llsupport/test/test_gc.py
Log:
More fixes -- or rather, obscure workarounds for one test

Modified: pypy/branch/jit-free-asm/pypy/jit/backend/llsupport/gc.py
==============================================================================
--- pypy/branch/jit-free-asm/pypy/jit/backend/llsupport/gc.py	(original)
+++ pypy/branch/jit-free-asm/pypy/jit/backend/llsupport/gc.py	Sun Nov 28 13:54:43 2010
@@ -251,6 +251,9 @@
         addr = self.gcmapstart()
         if self._gcmap_curlength:
             addr += rffi.sizeof(lltype.Signed) * self._gcmap_curlength
+            if not we_are_translated() and type(addr) is long:
+                from pypy.rpython.lltypesystem import ll2ctypes
+                addr = ll2ctypes._lladdress(addr)       # XXX workaround
         return addr
 
     def gcmarksorted(self):

Modified: pypy/branch/jit-free-asm/pypy/jit/backend/llsupport/test/test_gc.py
==============================================================================
--- pypy/branch/jit-free-asm/pypy/jit/backend/llsupport/test/test_gc.py	(original)
+++ pypy/branch/jit-free-asm/pypy/jit/backend/llsupport/test/test_gc.py	Sun Nov 28 13:54:43 2010
@@ -239,8 +239,8 @@
                 gcrootmap._gcmap[i*2+1] = i * 100 + 1
             assert gcrootmap._gcmap_deadentries == 0
             assert gc.asmgcroot.sort_count == 0
-            gcrootmap._gcmap_maxlength = 700
-            gcrootmap._gcmap_curlength = 700
+            gcrootmap._gcmap_maxlength = 1400
+            gcrootmap._gcmap_curlength = 1400
             gcrootmap._gcmap_sorted = False
             #
             gcrootmap.freeing_block(1200000 - 100, 1200000)



More information about the Pypy-commit mailing list