equal
deleted
inserted
replaced
3885 main_thread->smr_delete(); |
3885 main_thread->smr_delete(); |
3886 *canTryAgain = false; // don't let caller call JNI_CreateJavaVM again |
3886 *canTryAgain = false; // don't let caller call JNI_CreateJavaVM again |
3887 return status; |
3887 return status; |
3888 } |
3888 } |
3889 |
3889 |
3890 JFR_ONLY(Jfr::on_vm_init();) |
3890 JFR_ONLY(Jfr::on_create_vm_1();) |
3891 |
3891 |
3892 // Should be done after the heap is fully created |
3892 // Should be done after the heap is fully created |
3893 main_thread->cache_global_variables(); |
3893 main_thread->cache_global_variables(); |
3894 |
3894 |
3895 HandleMark hm; |
3895 HandleMark hm; |
4024 |
4024 |
4025 // This will initialize the module system. Only java.base classes can be |
4025 // This will initialize the module system. Only java.base classes can be |
4026 // loaded until phase 2 completes |
4026 // loaded until phase 2 completes |
4027 call_initPhase2(CHECK_JNI_ERR); |
4027 call_initPhase2(CHECK_JNI_ERR); |
4028 |
4028 |
|
4029 JFR_ONLY(Jfr::on_create_vm_2();) |
|
4030 |
4029 // Always call even when there are not JVMTI environments yet, since environments |
4031 // Always call even when there are not JVMTI environments yet, since environments |
4030 // may be attached late and JVMTI must track phases of VM execution |
4032 // may be attached late and JVMTI must track phases of VM execution |
4031 JvmtiExport::enter_start_phase(); |
4033 JvmtiExport::enter_start_phase(); |
4032 |
4034 |
4033 // Notify JVMTI agents that VM has started (JNI is up) - nop if no agents. |
4035 // Notify JVMTI agents that VM has started (JNI is up) - nop if no agents. |
4059 PerfMemory::set_accessible(true); |
4061 PerfMemory::set_accessible(true); |
4060 |
4062 |
4061 // Notify JVMTI agents that VM initialization is complete - nop if no agents. |
4063 // Notify JVMTI agents that VM initialization is complete - nop if no agents. |
4062 JvmtiExport::post_vm_initialized(); |
4064 JvmtiExport::post_vm_initialized(); |
4063 |
4065 |
4064 JFR_ONLY(Jfr::on_vm_start();) |
4066 JFR_ONLY(Jfr::on_create_vm_3();) |
4065 |
4067 |
4066 #if INCLUDE_MANAGEMENT |
4068 #if INCLUDE_MANAGEMENT |
4067 Management::initialize(THREAD); |
4069 Management::initialize(THREAD); |
4068 |
4070 |
4069 if (HAS_PENDING_EXCEPTION) { |
4071 if (HAS_PENDING_EXCEPTION) { |