Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r1127:ba29f5ab1dcd
Date: 2014-03-31 23:24 +0200
http://bitbucket.org/pypy/stmgc/changeset/ba29f5ab1dcd/

Log:    Extra asserts

diff --git a/c7/stm/core.c b/c7/stm/core.c
--- a/c7/stm/core.c
+++ b/c7/stm/core.c
@@ -683,6 +683,10 @@
         STM_SEGMENT->jmpbuf_ptr = NULL;
         clear_callbacks_on_abort();
     }
+    else {
+        assert(STM_PSEGMENT->transaction_state == TS_INEVITABLE);
+        assert(STM_SEGMENT->jmpbuf_ptr == NULL);
+    }
 
     s_mutex_unlock();
 }
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to