[pypy-commit] stmgc default: check that we can use stm_start_inevitable_transaction() without

arigo noreply at buildbot.pypy.org
Sat Oct 4 18:16:52 CEST 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r1451:4210e49aad58
Date: 2014-10-04 18:10 +0200
http://bitbucket.org/pypy/stmgc/changeset/4210e49aad58/

Log:	check that we can use stm_start_inevitable_transaction() without any
	rjbuf on the stack

diff --git a/c7/demo/demo2.c b/c7/demo/demo2.c
--- a/c7/demo/demo2.c
+++ b/c7/demo/demo2.c
@@ -295,10 +295,16 @@
 
     stm_setup();
     stm_register_thread_local(&stm_thread_local);
+
+    /* check that we can use stm_start_inevitable_transaction() without
+       any rjbuf on the stack */
+    stm_start_inevitable_transaction(&stm_thread_local);
+    stm_commit_transaction();
+
+
     stm_rewind_jmp_enterframe(&stm_thread_local, &rjbuf);
     stmcb_expand_marker = expand_marker;
 
-
     setup_list();
 
 


More information about the pypy-commit mailing list