[PyPy-issue] [issue693] Coroutine garbage collection prevents switches

Chris Smowton pypy-dev-issue at codespeak.net
Tue Apr 26 14:13:19 CEST 2011


Chris Smowton <cs448 at cam.ac.uk> added the comment:

Another interesting case happens if a coroutine saves itself from the GC in its
exception handler -- e.g. try: blah except CoroutineExit: global g; g =
stackless.coroutine.getcurrent(). It looks like such a coroutine becomes a weird
zombie creature that won't be killed again, even if it becomes garbage for a
second time.

_______________________________________________________
PyPy development tracker <pypy-dev-issue at codespeak.net>
<https://codespeak.net/issue/pypy-dev/issue693>
_______________________________________________________



More information about the Pypy-issue mailing list