[pypy-commit] stmgc marker: Make the stack markers odd (seems more useful for pypy)
arigo
noreply at buildbot.pypy.org
Sun Apr 20 10:11:36 CEST 2014
Author: Armin Rigo <arigo at tunes.org>
Branch: marker
Changeset: r1171:caccd9ab4c7c
Date: 2014-04-20 10:05 +0200
http://bitbucket.org/pypy/stmgc/changeset/caccd9ab4c7c/
Log: Make the stack markers odd (seems more useful for pypy)
diff --git a/c7/stmgc.h b/c7/stmgc.h
--- a/c7/stmgc.h
+++ b/c7/stmgc.h
@@ -271,8 +271,8 @@
#define STM_PUSH_ROOT(tl, p) ((tl).shadowstack++->ss = (object_t *)(p))
#define STM_POP_ROOT(tl, p) ((p) = (typeof(p))((--(tl).shadowstack)->ss))
#define STM_POP_ROOT_RET(tl) ((--(tl).shadowstack)->ss)
-#define STM_STACK_MARKER_NEW 2
-#define STM_STACK_MARKER_OLD 6
+#define STM_STACK_MARKER_NEW (-41)
+#define STM_STACK_MARKER_OLD (-43)
/* Every thread needs to have a corresponding stm_thread_local_t
More information about the pypy-commit
mailing list