From 259e4294e37a5b8b3eeb06e66f892780825b3642 Mon Sep 17 00:00:00 2001 From: Cary R Date: Fri, 21 Mar 2008 09:36:34 -0700 Subject: [PATCH] Make of_ZOMBIE use scheduled thread deletion. This patch modifies of_ZOMBIE() to use the same scheduled deletion as vthread_reap(). --- vvp/vthread.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vvp/vthread.cc b/vvp/vthread.cc index 6343a88e5..5c91f3ce2 100644 --- a/vvp/vthread.cc +++ b/vvp/vthread.cc @@ -3730,7 +3730,7 @@ bool of_ZOMBIE(vthread_t thr, vvp_code_t) { thr->pc = codespace_null(); if ((thr->parent == 0) && (thr->child == 0)) - delete thr; + schedule_del_thr(thr); return false; }