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

## src/share/vm/runtime/init.cpp

Print this page

     141
     142   // All the flags that get adjusted by VM_Version_init and os::init_2
     143   // have been set so dump the flags now.
     144   if (PrintFlagsFinal) {
     145     CommandLineFlags::printFlags(tty, false);
     146   }
     147
     148   return JNI_OK;
     149 }
     150
     151
     152 void exit_globals() {
     153   static bool destructorsCalled = false;
     154   if (!destructorsCalled) {
     155     destructorsCalled = true;
     156     perfMemory_exit();
     157     if (PrintSafepointStatistics) {
     158       // Print the collected safepoint statistics.
     159       SafepointSynchronize::print_stat_on_exit();
     160     }
     161     if (PrintStringTableStatistics) {
     162       SymbolTable::dump(tty);
     163       StringTable::dump(tty);

     164     }
     165     ostream_exit();
     166   }
     167 }
     168
     169
     170 static bool _init_completed = false;
     171
     172 bool is_init_completed() {
     173   return _init_completed;
     174 }
     175
     176
     177 void set_init_completed() {
     178   assert(Universe::is_fully_initialized(), "Should have completed initialization");
     179   _init_completed = true;
     180 }
     141
     142   // All the flags that get adjusted by VM_Version_init and os::init_2
     143   // have been set so dump the flags now.
     144   if (PrintFlagsFinal) {
     145     CommandLineFlags::printFlags(tty, false);
     146   }
     147
     148   return JNI_OK;
     149 }
     150
     151
     152 void exit_globals() {
     153   static bool destructorsCalled = false;
     154   if (!destructorsCalled) {
     155     destructorsCalled = true;
     156     perfMemory_exit();
     157     if (PrintSafepointStatistics) {
     158       // Print the collected safepoint statistics.
     159       SafepointSynchronize::print_stat_on_exit();
     160     }
     161     if (PrintStringTableStatistics) { // deprecated
     162       SymbolTable::the_table()->dump_table(tty, "SymbolTable");
     163       StringTable::the_table()->dump_table(tty, "StringTable");
     164     }
     165     if (PrintStringTableStatisticsAtExit) {
     166       StringTable::the_table()->dump(tty, "StringTable");
     167     }
     168     if (PrintSymbolTableStatisticsAtExit) {
     169       SymbolTable::the_table()->dump(tty, "SymbolTable");
     170     }
     171     if (PrintSystemDictionaryStatisticsAtExit) {
     172       SystemDictionary::the_table()->dump(tty, "SystemDictionary");
     173     }
     174     ostream_exit();
     175   }
     176 }
     177
     178
     179 static bool _init_completed = false;
     180
     181 bool is_init_completed() {
     182   return _init_completed;
     183 }
     184
     185
     186 void set_init_completed() {
     187   assert(Universe::is_fully_initialized(), "Should have completed initialization");
     188   _init_completed = true;
     189 }

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