Author: Gregor Wegberg <[email protected]>
Branch: gc-incminimark-pinning
Changeset: r72762:6b1a2dd2d891
Date: 2014-08-12 13:15 +0200
http://bitbucket.org/pypy/pypy/changeset/6b1a2dd2d891/
Log: only run assert if no pinned objects are around
diff --git a/rpython/memory/gc/incminimark.py b/rpython/memory/gc/incminimark.py
--- a/rpython/memory/gc/incminimark.py
+++ b/rpython/memory/gc/incminimark.py
@@ -2026,8 +2026,13 @@
debug_start("gc-collect-step")
debug_print("starting gc state: ", GC_STATES[self.gc_state])
# Debugging checks
- ll_assert(self.nursery_free == self.nursery,
- "nursery not empty in major_collection_step()")
+ if self.pinned_objects_in_nursery == 0:
+ ll_assert(self.nursery_free == self.nursery,
+ "nursery not empty in major_collection_step()")
+ else:
+ # XXX try to add some similar check to the above one for the case
+ # that the nursery still contains some pinned objects (groggi)
+ pass
self.debug_check_consistency()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit