[pypy-svn] r79607 - pypy/branch/jit-free-asm/pypy/jit/backend/llsupport

arigo at codespeak.net arigo at codespeak.net
Sun Nov 28 12:41:34 CET 2010


Author: arigo
Date: Sun Nov 28 12:41:33 2010
New Revision: 79607

Modified:
   pypy/branch/jit-free-asm/pypy/jit/backend/llsupport/gc.py
Log:
Oups.  Messed up the logic, getting an off-by-one error.


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 12:41:33 2010
@@ -357,12 +357,10 @@
         # 'item' points to one of the entries.  Because the whole array
         # is sorted, we know that it points either to the first entry we
         # want to kill, or to the previous entry.
-        while item.address[0] < stopaddr:
+        while item != gcmapend and item.address[0] < stopaddr:
             if item.address[0] >= startaddr:
                 item.address[1] = llmemory.NULL
                 self._gcmap_deadentries += 1
-            if item == gcmapend:
-                break
             item += asmgcroot.arrayitemsize
 
     def get_basic_shape(self, is_64_bit=False):



More information about the Pypy-commit mailing list