Author: Armin Rigo <ar...@tunes.org>
Branch: c8-hashtable
Changeset: r1730:351aff2b4699
Date: 2015-03-12 17:07 +0100
http://bitbucket.org/pypy/stmgc/changeset/351aff2b4699/

Log:    extra assert

diff --git a/c8/stm/setup.h b/c8/stm/setup.h
--- a/c8/stm/setup.h
+++ b/c8/stm/setup.h
@@ -4,7 +4,7 @@
 
 #ifndef NDEBUG
 static __thread long _stm_segfault_expected = 1;
-#define DEBUG_EXPECT_SEGFAULT(v) do {if (v) _stm_segfault_expected++; else 
_stm_segfault_expected--;} while (0)
+#define DEBUG_EXPECT_SEGFAULT(v) do {if (v) _stm_segfault_expected++; else 
_stm_segfault_expected--; assert(_stm_segfault_expected <= 1);} while (0)
 #else
 #define DEBUG_EXPECT_SEGFAULT(v) {}
 #endif
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to