hotspot/src/share/vm/runtime/init.cpp
changeset 16606 926ac1e006db
parent 15482 470d0b0c09f1
child 19319 0ad35be0733a
equal deleted inserted replaced
16605:ba13efd453bc 16606:926ac1e006db
   130     return JNI_ERR;
   130     return JNI_ERR;
   131   }
   131   }
   132   javaClasses_init();   // must happen after vtable initialization
   132   javaClasses_init();   // must happen after vtable initialization
   133   stubRoutines_init2(); // note: StubRoutines need 2-phase init
   133   stubRoutines_init2(); // note: StubRoutines need 2-phase init
   134 
   134 
   135   // Although we'd like to, we can't easily do a heap verify
       
   136   // here because the main thread isn't yet a JavaThread, so
       
   137   // its TLAB may not be made parseable from the usual interfaces.
       
   138   if (VerifyBeforeGC && !UseTLAB &&
       
   139       Universe::heap()->total_collections() >= VerifyGCStartAt) {
       
   140     Universe::heap()->prepare_for_verify();
       
   141     Universe::verify();   // make sure we're starting with a clean slate
       
   142   }
       
   143 
       
   144   // All the flags that get adjusted by VM_Version_init and os::init_2
   135   // All the flags that get adjusted by VM_Version_init and os::init_2
   145   // have been set so dump the flags now.
   136   // have been set so dump the flags now.
   146   if (PrintFlagsFinal) {
   137   if (PrintFlagsFinal) {
   147     CommandLineFlags::printFlags(tty, false);
   138     CommandLineFlags::printFlags(tty, false);
   148   }
   139   }