Author: Armin Rigo <[email protected]>
Branch: gc-del
Changeset: r63685:b83f0a157dda
Date: 2013-04-27 13:24 +0200
http://bitbucket.org/pypy/pypy/changeset/b83f0a157dda/

Log:    Only call this if cards are enabled.

diff --git a/rpython/memory/gc/minimark.py b/rpython/memory/gc/minimark.py
--- a/rpython/memory/gc/minimark.py
+++ b/rpython/memory/gc/minimark.py
@@ -2049,7 +2049,8 @@
                     pending.append(obj)
                     pending.append(NULL)   # marker
                 #
-                if self.header(obj).tid & GCFLAG_CARDS_SET != 0:
+                if (self.card_page_indices > 0 and
+                        self.header(obj).tid & GCFLAG_CARDS_SET != 0):
                     self.old_objects_with_cards_set.append(obj)
                     self.collect_cardrefs_to_nursery()
                 #
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to