src/share/vm/runtime/init.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8015774 Sdiff src/share/vm/runtime

src/share/vm/runtime/init.cpp

Print this page




  78 // JNI/JVM/JVMTI functions and signal handlers to work properly
  79 // during VM shutdown
  80 void perfMemory_exit();
  81 void ostream_exit();
  82 
  83 void vm_init_globals() {
  84   check_ThreadShadow();
  85   basic_types_init();
  86   eventlog_init();
  87   mutex_init();
  88   chunkpool_init();
  89   perfMemory_init();
  90 }
  91 
  92 
  93 jint init_globals() {
  94   HandleMark hm;
  95   management_init();
  96   bytecodes_init();
  97   classLoader_init();

  98   codeCache_init();
  99   VM_Version_init();
 100   os_init_globals();
 101   stubRoutines_init1();
 102   jint status = universe_init();  // dependent on codeCache_init and
 103                                   // stubRoutines_init1 and metaspace_init.
 104   if (status != JNI_OK)
 105     return status;
 106 
 107   interpreter_init();  // before any methods loaded
 108   invocationCounter_init();  // before any methods loaded
 109   marksweep_init();
 110   accessFlags_init();
 111   templateTable_init();
 112   InterfaceSupport_init();
 113   SharedRuntime::generate_stubs();
 114   universe2_init();  // dependent on codeCache_init and stubRoutines_init1
 115   referenceProcessor_init();
 116   jni_handles_init();
 117 #if INCLUDE_VM_STRUCTS
 118   vmStructs_init();
 119 #endif // INCLUDE_VM_STRUCTS
 120 
 121   vtableStubs_init();
 122   InlineCacheBuffer_init();
 123   compilerOracle_init();
 124   compilationPolicy_init();
 125   compileBroker_init();
 126   VMRegImpl::set_regName();
 127 
 128   if (!universe_post_init()) {
 129     return JNI_ERR;
 130   }
 131   javaClasses_init();   // must happen after vtable initialization
 132   stubRoutines_init2(); // note: StubRoutines need 2-phase init
 133 
 134   // All the flags that get adjusted by VM_Version_init and os::init_2
 135   // have been set so dump the flags now.
 136   if (PrintFlagsFinal) {
 137     CommandLineFlags::printFlags(tty, false);
 138   }
 139 
 140   return JNI_OK;
 141 }
 142 
 143 
 144 void exit_globals() {




  78 // JNI/JVM/JVMTI functions and signal handlers to work properly
  79 // during VM shutdown
  80 void perfMemory_exit();
  81 void ostream_exit();
  82 
  83 void vm_init_globals() {
  84   check_ThreadShadow();
  85   basic_types_init();
  86   eventlog_init();
  87   mutex_init();
  88   chunkpool_init();
  89   perfMemory_init();
  90 }
  91 
  92 
  93 jint init_globals() {
  94   HandleMark hm;
  95   management_init();
  96   bytecodes_init();
  97   classLoader_init();
  98   compilationPolicy_init();
  99   codeCache_init();
 100   VM_Version_init();
 101   os_init_globals();
 102   stubRoutines_init1();
 103   jint status = universe_init();  // dependent on codeCache_init and
 104                                   // stubRoutines_init1 and metaspace_init.
 105   if (status != JNI_OK)
 106     return status;
 107 
 108   interpreter_init();  // before any methods loaded
 109   invocationCounter_init();  // before any methods loaded
 110   marksweep_init();
 111   accessFlags_init();
 112   templateTable_init();
 113   InterfaceSupport_init();
 114   SharedRuntime::generate_stubs();
 115   universe2_init();  // dependent on codeCache_init and stubRoutines_init1
 116   referenceProcessor_init();
 117   jni_handles_init();
 118 #if INCLUDE_VM_STRUCTS
 119   vmStructs_init();
 120 #endif // INCLUDE_VM_STRUCTS
 121 
 122   vtableStubs_init();
 123   InlineCacheBuffer_init();
 124   compilerOracle_init();

 125   compileBroker_init();
 126   VMRegImpl::set_regName();
 127 
 128   if (!universe_post_init()) {
 129     return JNI_ERR;
 130   }
 131   javaClasses_init();   // must happen after vtable initialization
 132   stubRoutines_init2(); // note: StubRoutines need 2-phase init
 133 
 134   // All the flags that get adjusted by VM_Version_init and os::init_2
 135   // have been set so dump the flags now.
 136   if (PrintFlagsFinal) {
 137     CommandLineFlags::printFlags(tty, false);
 138   }
 139 
 140   return JNI_OK;
 141 }
 142 
 143 
 144 void exit_globals() {


src/share/vm/runtime/init.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File