Commits

Armin Rigo  committed fa86670

import stmgc/2d15ef133bde

  • Participants
  • Parent commits af15056
  • Branches stmgc-c7

Comments (0)

Files changed (3)

File rpython/translator/stm/src_stm/revision

-d0f79129cbb7
+2d15ef133bde

File rpython/translator/stm/src_stm/stmgc.c

 /* 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"

File rpython/translator/stm/src_stm/stmgc.h

    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