1. Pypy
  2. Untitled project
  3. pypy


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

View file
  • Ignore whitespace

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

View file
  • Ignore whitespace
 /* 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

View file
  • Ignore whitespace
    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