3874 // (see SystemDictionary::find_method_handle_intrinsic).
3875 initialize_jsr292_core_classes(CHECK_JNI_ERR);
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 INCLUDE_JVMCI
3895 if (force_JVMCI_intialization) {
3896 JVMCIRuntime::force_initialization(CHECK_JNI_ERR);
3897 CompileBroker::compilation_init_phase2();
3898 }
3899 #endif
3900
3901 // Always call even when there are not JVMTI environments yet, since environments
3902 // may be attached late and JVMTI must track phases of VM execution
3903 JvmtiExport::enter_live_phase();
3904
3905 // Notify JVMTI agents that VM initialization is complete - nop if no agents.
3906 JvmtiExport::post_vm_initialized();
3907
3908 if (TRACE_START() != JNI_OK) {
3909 vm_exit_during_initialization("Failed to start tracing backend.");
3910 }
3911
3912 #if INCLUDE_MANAGEMENT
3913 Management::initialize(THREAD);
|
3874 // (see SystemDictionary::find_method_handle_intrinsic).
3875 initialize_jsr292_core_classes(CHECK_JNI_ERR);
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
3917 #if INCLUDE_MANAGEMENT
3918 Management::initialize(THREAD);
|