[pypy-commit] pypy gc-del: Only call this if cards are enabled.

arigo noreply at buildbot.pypy.org
Sat Apr 27 13:34:18 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
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()
                 #


More information about the pypy-commit mailing list