[pypy-svn] r50292 - pypy/branch/asmgcroot/pypy/rpython/memory/gctransform

arigo at codespeak.net arigo at codespeak.net
Thu Jan 3 18:31:08 CET 2008


Author: arigo
Date: Thu Jan  3 18:31:06 2008
New Revision: 50292

Modified:
   pypy/branch/asmgcroot/pypy/rpython/memory/gctransform/framework.py
Log:
Just lost an hour debugging this stupid typo.


Modified: pypy/branch/asmgcroot/pypy/rpython/memory/gctransform/framework.py
==============================================================================
--- pypy/branch/asmgcroot/pypy/rpython/memory/gctransform/framework.py	(original)
+++ pypy/branch/asmgcroot/pypy/rpython/memory/gctransform/framework.py	Thu Jan  3 18:31:06 2008
@@ -788,15 +788,17 @@
             addr = gcdata.static_root_start
             end = gcdata.static_root_nongcend
             while addr != end:
-                if addr.address[0] != llmemory.NULL:
-                    collect_static_in_prebuilt_nongc(gc, addr)
+                result = addr.address[0]
+                if result.address[0] != llmemory.NULL:
+                    collect_static_in_prebuilt_nongc(gc, result)
                 addr += sizeofaddr
         if collect_static_in_prebuilt_gc:
             addr = gcdata.static_root_nongcend
             end = gcdata.static_root_end
             while addr != end:
-                if addr.address[0] != llmemory.NULL:
-                    collect_static_in_prebuilt_gc(gc, addr)
+                result = addr.address[0]
+                if result.address[0] != llmemory.NULL:
+                    collect_static_in_prebuilt_gc(gc, result)
                 addr += sizeofaddr
         if collect_stack_root:
             self.walk_stack_roots(collect_stack_root)     # abstract


More information about the pypy-svn mailing list