Author: Armin Rigo <[email protected]>
Branch:
Changeset: r1090:510720112e4c
Date: 2014-03-24 20:56 +0100
http://bitbucket.org/pypy/stmgc/changeset/510720112e4c/
Log: An extra assert: when we abort, we don't try to *increase* the
number of entries in the shadowstack
diff --git a/c7/stm/core.c b/c7/stm/core.c
--- a/c7/stm/core.c
+++ b/c7/stm/core.c
@@ -589,6 +589,7 @@
/* reset the tl->shadowstack and thread_local_obj to their original
value before the transaction start */
stm_thread_local_t *tl = pseg->pub.running_thread;
+ assert(tl->shadowstack >= pseg->shadowstack_at_start_of_transaction);
tl->shadowstack = pseg->shadowstack_at_start_of_transaction;
tl->thread_local_obj = pseg->threadlocal_at_start_of_transaction;
tl->last_abort__bytes_in_nursery = bytes_in_nursery;
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit