3626 Handle thread_group = create_initial_thread_group(CHECK); |
3626 Handle thread_group = create_initial_thread_group(CHECK); |
3627 Universe::set_main_thread_group(thread_group()); |
3627 Universe::set_main_thread_group(thread_group()); |
3628 initialize_class(vmSymbols::java_lang_Thread(), CHECK); |
3628 initialize_class(vmSymbols::java_lang_Thread(), CHECK); |
3629 oop thread_object = create_initial_thread(thread_group, main_thread, CHECK); |
3629 oop thread_object = create_initial_thread(thread_group, main_thread, CHECK); |
3630 main_thread->set_threadObj(thread_object); |
3630 main_thread->set_threadObj(thread_object); |
|
3631 |
3631 // Set thread status to running since main thread has |
3632 // Set thread status to running since main thread has |
3632 // been started and running. |
3633 // been started and running. |
3633 java_lang_Thread::set_thread_status(thread_object, |
3634 java_lang_Thread::set_thread_status(thread_object, |
3634 java_lang_Thread::RUNNABLE); |
3635 java_lang_Thread::RUNNABLE); |
3635 |
3636 |
3636 // The VM creates objects of this class. |
3637 // The VM creates objects of this class. |
3637 initialize_class(vmSymbols::java_lang_Module(), CHECK); |
3638 initialize_class(vmSymbols::java_lang_Module(), CHECK); |
|
3639 |
|
3640 #ifdef ASSERT |
|
3641 InstanceKlass *k = SystemDictionary::UnsafeConstants_klass(); |
|
3642 assert(k->is_not_initialized(), "UnsafeConstants should not already be initialized"); |
|
3643 #endif |
|
3644 |
|
3645 // initialize the hardware-specific constants needed by Unsafe |
|
3646 initialize_class(vmSymbols::jdk_internal_misc_UnsafeConstants(), CHECK); |
|
3647 jdk_internal_misc_UnsafeConstants::set_unsafe_constants(); |
3638 |
3648 |
3639 // The VM preresolves methods to these classes. Make sure that they get initialized |
3649 // The VM preresolves methods to these classes. Make sure that they get initialized |
3640 initialize_class(vmSymbols::java_lang_reflect_Method(), CHECK); |
3650 initialize_class(vmSymbols::java_lang_reflect_Method(), CHECK); |
3641 initialize_class(vmSymbols::java_lang_ref_Finalizer(), CHECK); |
3651 initialize_class(vmSymbols::java_lang_ref_Finalizer(), CHECK); |
3642 |
3652 |