Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r62511:997a2d3c74b2
Date: 2013-03-19 16:12 -0700
http://bitbucket.org/pypy/pypy/changeset/997a2d3c74b2/

Log:    StackletThread instances must not be seen during translation.

diff --git a/rpython/rlib/rstacklet.py b/rpython/rlib/rstacklet.py
--- a/rpython/rlib/rstacklet.py
+++ b/rpython/rlib/rstacklet.py
@@ -47,6 +47,10 @@
     def get_null_handle(self):
         return self._gcrootfinder.get_null_handle()
 
+    def _freeze_(self):
+        raise Exception("StackletThread instances must not be seen during"
+                        " translation.")
+
 
 class StackletThreadDeleter(object):
     # quick hack: the __del__ is on another object, so that
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to