[pypy-commit] stmgc default: make thread_descriptor accessible to pypy
Raemi
noreply at buildbot.pypy.org
Wed Oct 16 17:51:09 CEST 2013
Author: Remi Meier <remi.meier at gmail.com>
Branch:
Changeset: r537:3acc863a00a8
Date: 2013-10-16 17:50 +0200
http://bitbucket.org/pypy/stmgc/changeset/3acc863a00a8/
Log: make thread_descriptor accessible to pypy
diff --git a/c4/et.h b/c4/et.h
--- a/c4/et.h
+++ b/c4/et.h
@@ -167,7 +167,7 @@
gcptr **shadowstack_end_ref;
gcptr *thread_local_obj_ref;
gcptr old_thread_local_obj;
-
+ /* sync with pypy stmgc: */
NURSERY_FIELDS_DECL
long atomic; /* 0 = not atomic, > 0 atomic */
diff --git a/c4/stmgc.h b/c4/stmgc.h
--- a/c4/stmgc.h
+++ b/c4/stmgc.h
@@ -201,6 +201,7 @@
#define stm_pop_root() (*--stm_shadowstack)
extern __thread revision_t stm_private_rev_num;
+extern __thread struct tx_descriptor *thread_descriptor; /* XXX: stm_ prefix */
gcptr stm_DirectReadBarrier(gcptr);
gcptr stm_WriteBarrier(gcptr);
gcptr stm_RepeatReadBarrier(gcptr);
More information about the pypy-commit
mailing list