Author: Armin Rigo <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to