Commits

Armin Rigo  committed b83f0a1

Only call this if cards are enabled.

  • Participants
  • Parent commits 1506fbf
  • Branches gc-del

Comments (0)

Files changed (1)

File rpython/memory/gc/minimark.py

                     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()
                 #