src/share/vm/runtime/serviceThread.cpp

Print this page

        

@@ -68,15 +68,14 @@
 
     java_lang_Thread::set_thread(thread_oop(), thread);
     java_lang_Thread::set_priority(thread_oop(), NearMaxPriority);
     java_lang_Thread::set_daemon(thread_oop());
     thread->set_threadObj(thread_oop());
+    _instance = thread;
 
     Threads::add(thread);
     Thread::start(thread);
-
-    _instance = thread;
   }
 }
 
 void ServiceThread::service_thread_entry(JavaThread* jt, TRAPS) {
   while (true) {