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