Author: Armin Rigo <[email protected]>
Branch:
Changeset: r978:3f0d8773b90b
Date: 2014-03-12 09:30 +0100
http://bitbucket.org/pypy/stmgc/changeset/3f0d8773b90b/
Log: Add an assert to prevent double-starting transactions
diff --git a/c7/stm/core.c b/c7/stm/core.c
--- a/c7/stm/core.c
+++ b/c7/stm/core.c
@@ -137,6 +137,8 @@
void _stm_start_transaction(stm_thread_local_t *tl, stm_jmpbuf_t *jmpbuf)
{
+ assert(!_stm_in_transaction(tl));
+
s_mutex_lock();
retry:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit