Make of_ZOMBIE use scheduled thread deletion.
This patch modifies of_ZOMBIE() to use the same scheduled deletion as vthread_reap().
This commit is contained in:
parent
ea74eb771e
commit
259e4294e3
|
|
@ -3730,7 +3730,7 @@ bool of_ZOMBIE(vthread_t thr, vvp_code_t)
|
||||||
{
|
{
|
||||||
thr->pc = codespace_null();
|
thr->pc = codespace_null();
|
||||||
if ((thr->parent == 0) && (thr->child == 0))
|
if ((thr->parent == 0) && (thr->child == 0))
|
||||||
delete thr;
|
schedule_del_thr(thr);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue