107 universe_oopstorage_init();
108 perfMemory_init();
109 SuspendibleThreadSet_init();
110 }
111
112
113 jint init_globals() {
114 management_init();
115 JvmtiExport::initialize_oop_storage();
116 #if INCLUDE_JVMTI
117 if (AlwaysRecordEvolDependencies) {
118 JvmtiExport::set_can_hotswap_or_post_breakpoint(true);
119 JvmtiExport::set_all_dependencies_are_recorded(true);
120 }
121 #endif
122 bytecodes_init();
123 classLoader_init1();
124 compilationPolicy_init();
125 codeCache_init();
126 VM_Version_init(); // depends on codeCache_init for emitting code
127 initial_stubs_init();
128 jint status = universe_init(); // dependent on codeCache_init and
129 // initial_stubs_init and metaspace_init.
130 if (status != JNI_OK)
131 return status;
132
133 #ifdef LEAK_SANITIZER
134 {
135 // Register the Java heap with LSan.
136 VirtualSpaceSummary summary = Universe::heap()->create_heap_space_summary();
137 LSAN_REGISTER_ROOT_REGION(summary.start(), summary.reserved_size());
138 }
139 #endif // LEAK_SANITIZER
140
141 AsyncLogWriter::initialize();
142 gc_barrier_stubs_init(); // depends on universe_init, must be before interpreter_init
143 continuations_init(); // must precede continuation stub generation
144 continuation_stubs_init(); // depends on continuations_init
145 interpreter_init_stub(); // before methods get loaded
146 accessFlags_init();
147 InterfaceSupport_init();
148 VMRegImpl::set_regName(); // need this before generate_stubs (for printing oop maps).
149 SharedRuntime::generate_stubs();
150 return JNI_OK;
151 }
152
153 jint init_globals2() {
154 universe2_init(); // dependent on codeCache_init and initial_stubs_init
155 javaClasses_init(); // must happen after vtable initialization, before referenceProcessor_init
156 interpreter_init_code(); // after javaClasses_init and before any method gets linked
157 referenceProcessor_init();
158 jni_handles_init();
159 #if INCLUDE_VM_STRUCTS
160 vmStructs_init();
161 #endif // INCLUDE_VM_STRUCTS
162
163 vtableStubs_init();
164 if (!compilerOracle_init()) {
165 return JNI_EINVAL;
166 }
167 dependencyContext_init();
168 dependencies_init();
|
107 universe_oopstorage_init();
108 perfMemory_init();
109 SuspendibleThreadSet_init();
110 }
111
112
113 jint init_globals() {
114 management_init();
115 JvmtiExport::initialize_oop_storage();
116 #if INCLUDE_JVMTI
117 if (AlwaysRecordEvolDependencies) {
118 JvmtiExport::set_can_hotswap_or_post_breakpoint(true);
119 JvmtiExport::set_all_dependencies_are_recorded(true);
120 }
121 #endif
122 bytecodes_init();
123 classLoader_init1();
124 compilationPolicy_init();
125 codeCache_init();
126 VM_Version_init(); // depends on codeCache_init for emitting code
127 VMRegImpl::set_regName(); // need this before generate_stubs (for printing oop maps).
128 initial_stubs_init();
129 jint status = universe_init(); // dependent on codeCache_init and
130 // initial_stubs_init and metaspace_init.
131 if (status != JNI_OK)
132 return status;
133
134 #ifdef LEAK_SANITIZER
135 {
136 // Register the Java heap with LSan.
137 VirtualSpaceSummary summary = Universe::heap()->create_heap_space_summary();
138 LSAN_REGISTER_ROOT_REGION(summary.start(), summary.reserved_size());
139 }
140 #endif // LEAK_SANITIZER
141
142 AsyncLogWriter::initialize();
143 gc_barrier_stubs_init(); // depends on universe_init, must be before interpreter_init
144 continuations_init(); // must precede continuation stub generation
145 continuation_stubs_init(); // depends on continuations_init
146 interpreter_init_stub(); // before methods get loaded
147 accessFlags_init();
148 InterfaceSupport_init();
149 SharedRuntime::generate_stubs();
150 return JNI_OK;
151 }
152
153 jint init_globals2() {
154 universe2_init(); // dependent on codeCache_init and initial_stubs_init
155 javaClasses_init(); // must happen after vtable initialization, before referenceProcessor_init
156 interpreter_init_code(); // after javaClasses_init and before any method gets linked
157 referenceProcessor_init();
158 jni_handles_init();
159 #if INCLUDE_VM_STRUCTS
160 vmStructs_init();
161 #endif // INCLUDE_VM_STRUCTS
162
163 vtableStubs_init();
164 if (!compilerOracle_init()) {
165 return JNI_EINVAL;
166 }
167 dependencyContext_init();
168 dependencies_init();
|