[Stackless] slp_kill_tasks_with_stacks is broken
richard.m.tew at gmail.com
Wed Oct 12 01:57:05 CEST 2011
2011/10/11 Kristján Valur Jónsson <kristjan at ccpgames.com>:
> This issue should be fixed now.
> But looking at it, the entire premise of kill_task_with_cstack is more or less broken, because it cannot synchronously kill tasks from other threads. There is no synchronous switching between threads. So I suspect that we have to just accept that when the process is exiting, that we cannot guarantee that tasklets are unrolled. This is similar to what happens when the main thread exits in regular python. The other threads are not given the opportunity to exit. The process just terminates them too. This is not necessarily a bad thing.
Makes sense to me, let's do it.
Did you run the unit tests on Linux? Perhaps with VirtualBox and
Ubuntu? I think this should be standard procedure.
More information about the Stackless