src/hotspot/share/runtime/thread.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File open Sdiff src/hotspot/share/runtime

src/hotspot/share/runtime/thread.cpp

Print this page




3876 
3877   // This will initialize the module system.  Only java.base classes can be
3878   // loaded until phase 2 completes
3879   call_initPhase2(CHECK_JNI_ERR);
3880 
3881   // Always call even when there are not JVMTI environments yet, since environments
3882   // may be attached late and JVMTI must track phases of VM execution
3883   JvmtiExport::enter_start_phase();
3884 
3885   // Notify JVMTI agents that VM has started (JNI is up) - nop if no agents.
3886   JvmtiExport::post_vm_start();
3887 
3888   // Final system initialization including security manager and system class loader
3889   call_initPhase3(CHECK_JNI_ERR);
3890 
3891   // cache the system and platform class loaders
3892   SystemDictionary::compute_java_loaders(CHECK_JNI_ERR);
3893 
3894   if (DumpSharedSpaces) {
3895     // capture the module path info from the ModuleEntryTable
3896     ClassLoader::initialize_module_path();
3897   }
3898 
3899 #if INCLUDE_JVMCI
3900   if (force_JVMCI_intialization) {
3901     JVMCIRuntime::force_initialization(CHECK_JNI_ERR);
3902     CompileBroker::compilation_init_phase2();
3903   }
3904 #endif
3905 
3906   // Always call even when there are not JVMTI environments yet, since environments
3907   // may be attached late and JVMTI must track phases of VM execution
3908   JvmtiExport::enter_live_phase();
3909 
3910   // Notify JVMTI agents that VM initialization is complete - nop if no agents.
3911   JvmtiExport::post_vm_initialized();
3912 
3913   if (TRACE_START() != JNI_OK) {
3914     vm_exit_during_initialization("Failed to start tracing backend.");
3915   }
3916 




3876 
3877   // This will initialize the module system.  Only java.base classes can be
3878   // loaded until phase 2 completes
3879   call_initPhase2(CHECK_JNI_ERR);
3880 
3881   // Always call even when there are not JVMTI environments yet, since environments
3882   // may be attached late and JVMTI must track phases of VM execution
3883   JvmtiExport::enter_start_phase();
3884 
3885   // Notify JVMTI agents that VM has started (JNI is up) - nop if no agents.
3886   JvmtiExport::post_vm_start();
3887 
3888   // Final system initialization including security manager and system class loader
3889   call_initPhase3(CHECK_JNI_ERR);
3890 
3891   // cache the system and platform class loaders
3892   SystemDictionary::compute_java_loaders(CHECK_JNI_ERR);
3893 
3894   if (DumpSharedSpaces) {
3895     // capture the module path info from the ModuleEntryTable
3896     ClassLoader::initialize_module_path(THREAD);
3897   }
3898 
3899 #if INCLUDE_JVMCI
3900   if (force_JVMCI_intialization) {
3901     JVMCIRuntime::force_initialization(CHECK_JNI_ERR);
3902     CompileBroker::compilation_init_phase2();
3903   }
3904 #endif
3905 
3906   // Always call even when there are not JVMTI environments yet, since environments
3907   // may be attached late and JVMTI must track phases of VM execution
3908   JvmtiExport::enter_live_phase();
3909 
3910   // Notify JVMTI agents that VM initialization is complete - nop if no agents.
3911   JvmtiExport::post_vm_initialized();
3912 
3913   if (TRACE_START() != JNI_OK) {
3914     vm_exit_during_initialization("Failed to start tracing backend.");
3915   }
3916 


src/hotspot/share/runtime/thread.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File