[pypy-commit] pypy int-tag-untag-as-operations: a tagged int cannot move

cfbolz noreply at buildbot.pypy.org
Fri Nov 25 17:16:19 CET 2011


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: int-tag-untag-as-operations
Changeset: r49792:cfe174db963f
Date: 2011-11-25 17:15 +0100
http://bitbucket.org/pypy/pypy/changeset/cfe174db963f/

Log:	a tagged int cannot move

diff --git a/pypy/rpython/memory/gc/minimark.py b/pypy/rpython/memory/gc/minimark.py
--- a/pypy/rpython/memory/gc/minimark.py
+++ b/pypy/rpython/memory/gc/minimark.py
@@ -756,6 +756,8 @@
 
     def can_move(self, obj):
         """Overrides the parent can_move()."""
+        if not self.is_valid_gc_object(obj):
+            return False
         return self.is_in_nursery(obj)
 
 


More information about the pypy-commit mailing list