< prev index next >

src/hotspot/share/runtime/init.cpp

Print this page




  96 void vm_init_globals() {
  97   check_ThreadShadow();
  98   basic_types_init();
  99   eventlog_init();
 100   mutex_init();
 101   chunkpool_init();
 102   perfMemory_init();
 103   SuspendibleThreadSet_init();
 104 }
 105 
 106 
 107 jint init_globals() {
 108   HandleMark hm;
 109   management_init();
 110   bytecodes_init();
 111   classLoader_init1();
 112   compilationPolicy_init();
 113   codeCache_init();
 114   VM_Version_init();
 115   os_init_globals();

 116   stubRoutines_init1();
 117   jint status = universe_init();  // dependent on codeCache_init and
 118                                   // stubRoutines_init1 and metaspace_init.
 119   if (status != JNI_OK)
 120     return status;
 121 
 122   gc_barrier_stubs_init();   // depends on universe_init, must be before interpreter_init
 123   interpreter_init();        // before any methods loaded
 124   invocationCounter_init();  // before any methods loaded
 125   accessFlags_init();
 126   templateTable_init();
 127   InterfaceSupport_init();
 128   VMRegImpl::set_regName();  // need this before generate_stubs (for printing oop maps).
 129   SharedRuntime::generate_stubs();
 130   universe2_init();  // dependent on codeCache_init and stubRoutines_init1
 131   javaClasses_init();// must happen after vtable initialization, before referenceProcessor_init
 132   referenceProcessor_init();
 133   jni_handles_init();
 134 #if INCLUDE_VM_STRUCTS
 135   vmStructs_init();
 136 #endif // INCLUDE_VM_STRUCTS
 137 
 138   vtableStubs_init();
 139   InlineCacheBuffer_init();
 140   compilerOracle_init();
 141   dependencyContext_init();
 142 
 143   if (!compileBroker_init()) {
 144     return JNI_EINVAL;
 145   }
 146 #if INCLUDE_JVMCI
 147   if (EnableJVMCI) {
 148     JVMCI::initialize_globals();




  96 void vm_init_globals() {
  97   check_ThreadShadow();
  98   basic_types_init();
  99   eventlog_init();
 100   mutex_init();
 101   chunkpool_init();
 102   perfMemory_init();
 103   SuspendibleThreadSet_init();
 104 }
 105 
 106 
 107 jint init_globals() {
 108   HandleMark hm;
 109   management_init();
 110   bytecodes_init();
 111   classLoader_init1();
 112   compilationPolicy_init();
 113   codeCache_init();
 114   VM_Version_init();
 115   os_init_globals();
 116   VMRegImpl::set_regName();  // need this before generate_stubs (for printing oop maps).
 117   stubRoutines_init1();
 118   jint status = universe_init();  // dependent on codeCache_init and
 119                                   // stubRoutines_init1 and metaspace_init.
 120   if (status != JNI_OK)
 121     return status;
 122 
 123   gc_barrier_stubs_init();   // depends on universe_init, must be before interpreter_init
 124   interpreter_init();        // before any methods loaded
 125   invocationCounter_init();  // before any methods loaded
 126   accessFlags_init();
 127   templateTable_init();
 128   InterfaceSupport_init();

 129   SharedRuntime::generate_stubs();
 130   universe2_init();  // dependent on codeCache_init and stubRoutines_init1
 131   javaClasses_init();// must happen after vtable initialization, before referenceProcessor_init
 132   referenceProcessor_init();
 133   jni_handles_init();
 134 #if INCLUDE_VM_STRUCTS
 135   vmStructs_init();
 136 #endif // INCLUDE_VM_STRUCTS
 137 
 138   vtableStubs_init();
 139   InlineCacheBuffer_init();
 140   compilerOracle_init();
 141   dependencyContext_init();
 142 
 143   if (!compileBroker_init()) {
 144     return JNI_EINVAL;
 145   }
 146 #if INCLUDE_JVMCI
 147   if (EnableJVMCI) {
 148     JVMCI::initialize_globals();


< prev index next >