hotspot/src/share/vm/memory/universe.cpp
changeset 17112 e49af4ba7755
parent 16672 152c041083e1
child 17370 59a0620561fa
child 18061 cd92ca4c1331
equal deleted inserted replaced
17111:77f553b98e63 17112:e49af4ba7755
  1268     heap()->print_extended_on(st);
  1268     heap()->print_extended_on(st);
  1269   }
  1269   }
  1270   st->print_cr("}");
  1270   st->print_cr("}");
  1271 }
  1271 }
  1272 
  1272 
  1273 void Universe::verify(bool silent, VerifyOption option) {
  1273 void Universe::verify(VerifyOption option, const char* prefix, bool silent) {
  1274   // The use of _verify_in_progress is a temporary work around for
  1274   // The use of _verify_in_progress is a temporary work around for
  1275   // 6320749.  Don't bother with a creating a class to set and clear
  1275   // 6320749.  Don't bother with a creating a class to set and clear
  1276   // it since it is only used in this method and the control flow is
  1276   // it since it is only used in this method and the control flow is
  1277   // straight forward.
  1277   // straight forward.
  1278   _verify_in_progress = true;
  1278   _verify_in_progress = true;
  1285 
  1285 
  1286   ResourceMark rm;
  1286   ResourceMark rm;
  1287   HandleMark hm;  // Handles created during verification can be zapped
  1287   HandleMark hm;  // Handles created during verification can be zapped
  1288   _verify_count++;
  1288   _verify_count++;
  1289 
  1289 
       
  1290   if (!silent) gclog_or_tty->print(prefix);
  1290   if (!silent) gclog_or_tty->print("[Verifying ");
  1291   if (!silent) gclog_or_tty->print("[Verifying ");
  1291   if (!silent) gclog_or_tty->print("threads ");
  1292   if (!silent) gclog_or_tty->print("threads ");
  1292   Threads::verify();
  1293   Threads::verify();
       
  1294   if (!silent) gclog_or_tty->print("heap ");
  1293   heap()->verify(silent, option);
  1295   heap()->verify(silent, option);
  1294 
       
  1295   if (!silent) gclog_or_tty->print("syms ");
  1296   if (!silent) gclog_or_tty->print("syms ");
  1296   SymbolTable::verify();
  1297   SymbolTable::verify();
  1297   if (!silent) gclog_or_tty->print("strs ");
  1298   if (!silent) gclog_or_tty->print("strs ");
  1298   StringTable::verify();
  1299   StringTable::verify();
  1299   {
  1300   {