[pypy-commit] stmgc default: this assert can fail

Raemi noreply at buildbot.pypy.org
Tue Jul 2 12:24:02 CEST 2013


Author: Remi Meier <meierrem at student.ethz.ch>
Branch: 
Changeset: r338:2040cea49c77
Date: 2013-07-02 12:23 +0200
http://bitbucket.org/pypy/stmgc/changeset/2040cea49c77/

Log:	this assert can fail

diff --git a/c4/nursery.c b/c4/nursery.c
--- a/c4/nursery.c
+++ b/c4/nursery.c
@@ -44,7 +44,11 @@
 void stmgc_done_nursery(void)
 {
     struct tx_descriptor *d = thread_descriptor;
-    assert(!minor_collect_anything_to_do(d));
+    /* someone may have called minor_collect_soon()
+       inbetween the preceeding minor_collect() and 
+       this assert (committransaction() -> 
+       updatechainheads() -> stub_malloc() -> ...): */
+    /* assert(!minor_collect_anything_to_do(d)); */
     stm_free(d->nursery_base, GC_NURSERY);
 
     gcptrlist_delete(&d->old_objects_to_trace);


More information about the pypy-commit mailing list