[pypy-svn] r55341 - pypy/branch/gc+thread/pypy/module/thread

arigo at codespeak.net arigo at codespeak.net
Wed May 28 13:56:11 CEST 2008


Author: arigo
Date: Wed May 28 13:56:10 2008
New Revision: 55341

Modified:
   pypy/branch/gc+thread/pypy/module/thread/gil.py
Log:
Clean up this global object between translations.


Modified: pypy/branch/gc+thread/pypy/module/thread/gil.py
==============================================================================
--- pypy/branch/gc+thread/pypy/module/thread/gil.py	(original)
+++ pypy/branch/gc+thread/pypy/module/thread/gil.py	Wed May 28 13:56:10 2008
@@ -70,7 +70,9 @@
 
 
 class SpaceState:
-    pass
+    def _freeze_(self):
+        self.ll_GIL = thread.null_ll_lock
+        return False
 spacestate = SpaceState()
 
 # Fragile code below.  We have to preserve the C-level errno manually...



More information about the Pypy-commit mailing list