diff src/share/vm/memory/universe.cpp @ 8855:24ef5fb05e0f

8010463: G1: Crashes with -UseTLAB and heap verification Summary: Some parts of the G1 heap can only be walked during a safepoint. Skip verifying these parts of the heap when verifying during JVM startup. Reviewed-by: brutisso, tschatzl
author johnc
date Fri, 29 Mar 2013 13:49:37 -0700
parents 42e370795a39
children b9a918201d47 8be1318fbe77
line wrap: on
line diff
--- a/src/share/vm/memory/universe.cpp	Wed Mar 27 19:21:18 2013 +0100
+++ b/src/share/vm/memory/universe.cpp	Fri Mar 29 13:49:37 2013 -0700
@@ -953,15 +953,6 @@
 void universe2_init() {
   EXCEPTION_MARK;
   Universe::genesis(CATCH);
-  // Although we'd like to verify here that the state of the heap
-  // is good, we can't because the main thread has not yet added
-  // itself to the threads list (so, using current interfaces
-  // we can't "fill" its TLAB), unless TLABs are disabled.
-  if (VerifyBeforeGC && !UseTLAB &&
-      Universe::heap()->total_collections() >= VerifyGCStartAt) {
-     Universe::heap()->prepare_for_verify();
-     Universe::verify();   // make sure we're starting with a clean slate
-  }
 }