Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r48070:6650d6cdcdbe
Date: 2011-10-15 11:11 +0200
http://bitbucket.org/pypy/pypy/changeset/6650d6cdcdbe/

Log:    Force a reinit during translation, otherwise we might be left with a
        broken minicache entry.

diff --git a/pypy/module/thread/threadlocals.py 
b/pypy/module/thread/threadlocals.py
--- a/pypy/module/thread/threadlocals.py
+++ b/pypy/module/thread/threadlocals.py
@@ -12,6 +12,10 @@
         self._mostrecentkey = 0        # fast minicaching for the common case
         self._mostrecentvalue = None   # fast minicaching for the common case
 
+    def _freeze_(self):
+        self.__init__()
+        return False
+
     def getvalue(self):
         ident = thread.get_ident()
         if ident == self._mostrecentkey:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to