[pypy-svn] r33346 - pypy/dist/pypy/objspace/cclp

auc at codespeak.net auc at codespeak.net
Mon Oct 16 18:35:32 CEST 2006


Author: auc
Date: Mon Oct 16 18:35:30 2006
New Revision: 33346

Modified:
   pypy/dist/pypy/objspace/cclp/space.py
Log:
fix + more verbosity


Modified: pypy/dist/pypy/objspace/cclp/space.py
==============================================================================
--- pypy/dist/pypy/objspace/cclp/space.py	(original)
+++ pypy/dist/pypy/objspace/cclp/space.py	Mon Oct 16 18:35:30 2006
@@ -167,13 +167,19 @@
             # a) we create a (clonable) container thread for any 'newspace'
             # b) at clone-time, we clone that container, hoping that
             # indeed everything will come with it
+            w("cloning the container thread")
             everything = self._container.w_clone()
+            w("getting the fresh cspace from it")
             new_cspace = everything._cspace
-            sched.uler.add_new_thread(everything)
+            w("registering the container clone to top level cspace scheduler")
+            sched.main_thread._cspace.add_new_thread(everything)
+            w("add container clone to blocked on cspace clone variable _finished")
+            # we crash below
             sched.uler.add_to_blocked_on(new_cspace._finished, everything)
             # however, we need to keep track of all threads created
             # from 'within' the space (propagators, or even app-level threads)
             # -> cspaces as thread groups
+            w("add cloned cspace to new group")
             sched.uler.add_new_group(new_cspace)
             return new_cspace
 



More information about the Pypy-commit mailing list