From 929312d480b0654ad181f25a21f1a5d9d1eb98d5 Mon Sep 17 00:00:00 2001 From: Salikh Zakirov Date: Tue, 20 Mar 2007 21:39:46 +0300 Subject: [PATCH] Joining thread on resetting thread signifies a critical bug Joining should not be needed, because thread block should not be reset if the thread is still alive and has not been detached. --- vm/thread/src/thread_native_basic.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/vm/thread/src/thread_native_basic.c b/vm/thread/src/thread_native_basic.c index 0ca5080..3dcb5e3 100644 --- a/vm/thread/src/thread_native_basic.c +++ b/vm/thread/src/thread_native_basic.c @@ -651,10 +651,6 @@ static hythread_t allocate_thread() { static void reset_thread(hythread_t thread) { int r; IDATA status; - if (thread->os_handle) { - r = os_thread_join(thread->os_handle); - assert(!r); - } thread->os_handle = (osthread_t)NULL; thread->priority = HYTHREAD_PRIORITY_NORMAL; -- 1.4.1.g4455