Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r1303:1815f493a1c5
Date: 2014-08-12 17:08 +0200
http://bitbucket.org/pypy/stmgc/changeset/1815f493a1c5/

Log:    Bug fix: now the logic will complain if the shadow stack is not
        correctly balanced.

diff --git a/c7/demo/demo2.c b/c7/demo/demo2.c
--- a/c7/demo/demo2.c
+++ b/c7/demo/demo2.c
@@ -208,6 +208,11 @@
     printf("setup ok\n");
 }
 
+void teardown_list(void)
+{
+    STM_POP_ROOT_RET(stm_thread_local);
+}
+
 
 static sem_t done;
 
@@ -303,6 +308,7 @@
 
     final_check();
 
+    teardown_list();
 
     stm_rewind_jmp_leaveframe(&stm_thread_local, &rjbuf);
     unregister_thread_local();
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to