[pypy-svn] r30901 - pypy/dist/pypy/objspace/cclp
auc at codespeak.net
auc at codespeak.net
Wed Aug 2 16:09:12 CEST 2006
Author: auc
Date: Wed Aug 2 16:09:10 2006
New Revision: 30901
Modified:
pypy/dist/pypy/objspace/cclp/scheduler.py
Log:
remove dead code, transl. fix
Modified: pypy/dist/pypy/objspace/cclp/scheduler.py
==============================================================================
--- pypy/dist/pypy/objspace/cclp/scheduler.py (original)
+++ pypy/dist/pypy/objspace/cclp/scheduler.py Wed Aug 2 16:09:10 2006
@@ -55,13 +55,9 @@
assert self._head not in self._blocked_on
assert self._head not in self._blocked_byneed
except:
- self.display_head()
- w("BLOCKED", str(self._blocked))
- all = {}
- all.update(self._blocked_on)
- all.update(self._blocked_byneed)
- w(str(all))
- raise
+ #XXX give sched_info maybe
+ raise OperationError(self.space.w_RuntimeError,
+ self.space.wrap("scheduler is in an incoherent state"))
def _chain_insert(self, thread):
assert thread._next is thread
@@ -69,11 +65,6 @@
assert isinstance(thread, ClonableCoroutine)
assert isinstance(thread._next, ClonableCoroutine)
assert isinstance(thread._prev, ClonableCoroutine)
-## if self._head is None:
-## thread._next = thread
-## thread._prev = thread
-## self._set_head(thread)
-## else:
r = self._head
l = r._prev
l._next = thread
More information about the Pypy-commit
mailing list