Author: Carl Friedrich Bolz <cfb...@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)
 
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to