From: Michael Starzinger Date: Mon, 8 Oct 2007 22:19:05 +0000 (+0200) Subject: * src/threads/native/threads.c (threads_detach_thread): Fixed debug output and X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=a4df171e955d9d549c6d609a2b5fb67ced0bcbfd;p=cacao.git * src/threads/native/threads.c (threads_detach_thread): Fixed debug output and compiler warning. --- diff --git a/src/threads/native/threads.c b/src/threads/native/threads.c index 8e5d7ba71..6cf575f3d 100644 --- a/src/threads/native/threads.c +++ b/src/threads/native/threads.c @@ -1512,6 +1512,8 @@ bool threads_detach_thread(threadobject *t) java_handle_t *o; #endif + DEBUGTHREADS("detaching", t); + #if defined(ENABLE_JAVASE) object = (java_lang_Thread *) threads_thread_get_object(t); @@ -1597,12 +1599,10 @@ bool threads_detach_thread(threadobject *t) threads_thread_state_terminated(t); - DEBUGTHREADS("detaching", t); - - /* Notify all threads waiting on this thread. These are joining + /* Notify all threads waiting on this thread. These are joining this thread. */ - o = (java_object_t *) object; + o = (java_handle_t *) object; /* XXX Care about exceptions? */ (void) lock_monitor_enter(o);