* src/threads/thread.cpp: Set thread to RUNNABLE during Thread.start.
[cacao.git] / src / threads / thread.cpp
index b111ca90f70bdaf74e9f073f93bf49e970ed65e0..dad552bd16b7c307f4993e709b4f6e403dfc44be 100644 (file)
@@ -469,6 +469,8 @@ void threads_thread_start(java_handle_t *object)
 
        Finalizer::attach_custom_finalizer(LLNI_WRAP(t->object), thread_cleanup_finalizer, t);
 
+       thread_set_state_runnable(t);
+
        /* Start the thread.  Don't pass a function pointer (NULL) since
           we want Thread.run()V here. */