[pypy-commit] stmgc default: Hackish but simple: add here the call to stm_begin_transaction().

arigo noreply at buildbot.pypy.org
Fri Sep 27 23:37:04 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r534:d78107007cab
Date: 2013-09-27 23:36 +0200
http://bitbucket.org/pypy/stmgc/changeset/d78107007cab/

Log:	Hackish but simple: add here the call to stm_begin_transaction().

diff --git a/c4/et.c b/c4/et.c
--- a/c4/et.c
+++ b/c4/et.c
@@ -1017,7 +1017,10 @@
   // jump back to the setjmp_buf (this call does not return)
   stm_stop_sharedlock();
   if (d->longjmp_callback != NULL)
-    d->longjmp_callback(d->setjmp_buf);
+    {
+      stm_begin_transaction(d->setjmp_buf, d->longjmp_callback);
+      d->longjmp_callback(d->setjmp_buf);
+    }
   else
     longjmp(*(jmp_buf *)d->setjmp_buf, 1);
 


More information about the pypy-commit mailing list