src/hotspot/share/runtime/os.hpp
changeset 48005 9fd89aabb6cd
parent 47903 7f22774a5f42
child 48153 cfa2c43e58c2
equal deleted inserted replaced
48003:e1ec73e3325e 48005:9fd89aabb6cd
   452   };
   452   };
   453 
   453 
   454   static bool create_thread(Thread* thread,
   454   static bool create_thread(Thread* thread,
   455                             ThreadType thr_type,
   455                             ThreadType thr_type,
   456                             size_t req_stack_size = 0);
   456                             size_t req_stack_size = 0);
       
   457 
       
   458   // The "main thread", also known as "starting thread", is the thread
       
   459   // that loads/creates the JVM via JNI_CreateJavaVM.
   457   static bool create_main_thread(JavaThread* thread);
   460   static bool create_main_thread(JavaThread* thread);
       
   461 
       
   462   // The primordial thread is the initial process thread. The java
       
   463   // launcher never uses the primordial thread as the main thread, but
       
   464   // applications that host the JVM directly may do so. Some platforms
       
   465   // need special-case handling of the primordial thread if it attaches
       
   466   // to the VM.
       
   467   static bool is_primordial_thread(void)
       
   468 #if defined(_WINDOWS) || defined(BSD)
       
   469     // No way to identify the primordial thread.
       
   470     { return false; }
       
   471 #else
       
   472   ;
       
   473 #endif
       
   474 
   458   static bool create_attached_thread(JavaThread* thread);
   475   static bool create_attached_thread(JavaThread* thread);
   459   static void pd_start_thread(Thread* thread);
   476   static void pd_start_thread(Thread* thread);
   460   static void start_thread(Thread* thread);
   477   static void start_thread(Thread* thread);
   461 
   478 
   462   static void initialize_thread(Thread* thr);
   479   static void initialize_thread(Thread* thr);