Author: Armin Rigo <[email protected]>
Branch:
Changeset: r1298:c84f87cc1dad
Date: 2014-08-12 16:00 +0200
http://bitbucket.org/pypy/stmgc/changeset/c84f87cc1dad/
Log: Add an assert
diff --git a/c7/stm/rewind_setjmp.c b/c7/stm/rewind_setjmp.c
--- a/c7/stm/rewind_setjmp.c
+++ b/c7/stm/rewind_setjmp.c
@@ -67,6 +67,8 @@
rjthread = rjthread1;
rjthread->head = rjthread->initial_head;
result = rjthread->repeat_count + 1;
+ /* check that the shadowstack was correctly restored */
+ assert(rjthread->moved_off_ssbase == ss1);
}
rjthread->repeat_count = result;
copy_stack(rjthread, (char *)&rjthread1, ss1);
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit