[pypy-commit] stmgc default: Add an assert
arigo
noreply at buildbot.pypy.org
Tue Aug 12 16:00:44 CEST 2014
Author: Armin Rigo <arigo at tunes.org>
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);
More information about the pypy-commit
mailing list