[pypy-commit] pypy stm: Make the exc_data structure a thread-local.
arigo
noreply at buildbot.pypy.org
Thu Sep 22 18:59:38 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch: stm
Changeset: r47397:2869bd44f830
Date: 2011-09-22 18:59 +0200
http://bitbucket.org/pypy/pypy/changeset/2869bd44f830/
Log: Make the exc_data structure a thread-local.
diff --git a/pypy/translator/exceptiontransform.py b/pypy/translator/exceptiontransform.py
--- a/pypy/translator/exceptiontransform.py
+++ b/pypy/translator/exceptiontransform.py
@@ -471,7 +471,8 @@
def setup_excdata(self):
EXCDATA = lltype.Struct('ExcData',
('exc_type', self.lltype_of_exception_type),
- ('exc_value', self.lltype_of_exception_value))
+ ('exc_value', self.lltype_of_exception_value),
+ hints={'thread_local': True})
self.EXCDATA = EXCDATA
exc_data = lltype.malloc(EXCDATA, immortal=True)
More information about the pypy-commit
mailing list