src/share/vm/runtime/thread.cpp
Print this page
*** 3468,3484 ****
if (DumpSharedSpaces) {
MetaspaceShared::preload_and_dump(CHECK_JNI_ERR);
ShouldNotReachHere();
}
- // Always call even when there are not JVMTI environments yet, since environments
- // may be attached late and JVMTI must track phases of VM execution
- JvmtiExport::enter_start_phase();
-
- // Notify JVMTI agents that VM has started (JNI is up) - nop if no agents.
- JvmtiExport::post_vm_start();
-
initialize_java_lang_classes(main_thread, CHECK_JNI_ERR);
// Create and patch the java.lang.reflect.Module entry for module java.base
// into existing classes.
ModuleEntryTable::patch_javabase_entries(CHECK_JNI_ERR);
--- 3468,3477 ----
*** 3590,3599 ****
--- 3583,3599 ----
// and system class loader may be a custom class loaded from -Xbootclasspath/a,
// other modules or the application's classpath.
call_initPhase2(CHECK_JNI_ERR);
+ // Always call even when there are not JVMTI environments yet, since environments
+ // may be attached late and JVMTI must track phases of VM execution
+ JvmtiExport::enter_start_phase();
+
+ // Notify JVMTI agents that VM has started (JNI is up) - nop if no agents.
+ JvmtiExport::post_vm_start();
+
// Final system initialization including security manager and system class loader.
call_initPhase3(CHECK_JNI_ERR);
// cache the system class loader
SystemDictionary::compute_java_system_loader(CHECK_JNI_ERR);