[pypy-commit] pypy stm-thread-2: This global var needs a __thread.

arigo noreply at buildbot.pypy.org
Fri Sep 14 15:07:50 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: stm-thread-2
Changeset: r57345:4f8d9d122f13
Date: 2012-09-14 15:06 +0200
http://bitbucket.org/pypy/pypy/changeset/4f8d9d122f13/

Log:	This global var needs a __thread.

diff --git a/pypy/translator/c/src/rtyper.h b/pypy/translator/c/src/rtyper.h
--- a/pypy/translator/c/src/rtyper.h
+++ b/pypy/translator/c/src/rtyper.h
@@ -23,7 +23,7 @@
 
 #ifndef PYPY_NOT_MAIN_FILE
 
-struct _RPyString_dump_t {
+__thread struct _RPyString_dump_t {
 	struct _RPyString_dump_t *next;
 	char data[1];
 } *_RPyString_dump = NULL;


More information about the pypy-commit mailing list