Author: Armin Rigo <[email protected]>
Branch: stmgc-c7
Changeset: r69803:fa8667037de4
Date: 2014-03-08 13:20 +0100
http://bitbucket.org/pypy/pypy/changeset/fa8667037de4/
Log: import stmgc/2d15ef133bde
diff --git a/rpython/translator/stm/src_stm/revision
b/rpython/translator/stm/src_stm/revision
--- a/rpython/translator/stm/src_stm/revision
+++ b/rpython/translator/stm/src_stm/revision
@@ -1,1 +1,1 @@
-d0f79129cbb7
+2d15ef133bde
diff --git a/rpython/translator/stm/src_stm/stmgc.c
b/rpython/translator/stm/src_stm/stmgc.c
--- a/rpython/translator/stm/src_stm/stmgc.c
+++ b/rpython/translator/stm/src_stm/stmgc.c
@@ -1,5 +1,5 @@
/* Imported by rpython/translator/stm/import_stmgc.py */
-#define _GNU_SOURCE
+#define _GNU_SOURCE 1
#include "stmgc.h"
#include "stm/atomic.h"
#include "stm/list.h"
diff --git a/rpython/translator/stm/src_stm/stmgc.h
b/rpython/translator/stm/src_stm/stmgc.h
--- a/rpython/translator/stm/src_stm/stmgc.h
+++ b/rpython/translator/stm/src_stm/stmgc.h
@@ -200,6 +200,7 @@
transaction. */
#define STM_PUSH_ROOT(tl, p) (*((tl).shadowstack++) = (object_t *)(p))
#define STM_POP_ROOT(tl, p) ((p) = (typeof(p))*(--(tl).shadowstack))
+#define STM_POP_ROOT_RET(tl) (*(--(tl).shadowstack))
/* Every thread needs to have a corresponding stm_thread_local_t
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit