src/share/vm/runtime/init.cpp

changeset 4855
24ef5fb05e0f
parent 4542
db9981fd3124
child 5528
740e263c80c6
equal deleted inserted replaced
4854:754c24457b20 4855:24ef5fb05e0f
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 }

mercurial