* src/threads/posix/thread-posix.cpp: Removed state-setting function call that
would be done by the thread itself, creating a nasty race.
threads_set_thread_priority(t->tid, jlt.get_priority());
- /* Thread is completely initialized. */
-
- thread_set_state_runnable(t);
-
/* tell threads_startup_thread that we registered ourselves */
/* CAUTION: *startup becomes invalid with this! */
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. */