hotspot/src/share/vm/runtime/thread.cpp
changeset 16680 960505df90e7
parent 16606 926ac1e006db
child 17026 72b2233861f1
child 17112 e49af4ba7755
--- a/hotspot/src/share/vm/runtime/thread.cpp	Thu Apr 04 21:15:43 2013 -0700
+++ b/hotspot/src/share/vm/runtime/thread.cpp	Fri Apr 05 10:20:04 2013 -0700
@@ -3446,9 +3446,9 @@
   }
 
   assert (Universe::is_fully_initialized(), "not initialized");
-  if (VerifyBeforeGC && VerifyGCStartAt == 0) {
-    Universe::heap()->prepare_for_verify();
-    Universe::verify();   // make sure we're starting with a clean slate
+  if (VerifyDuringStartup) {
+    VM_Verify verify_op(false /* silent */);   // make sure we're starting with a clean slate
+    VMThread::execute(&verify_op);
   }
 
   EXCEPTION_MARK;