hotspot/src/share/vm/memory/universe.cpp
changeset 18061 cd92ca4c1331
parent 18056 0e99ee964114
parent 17112 e49af4ba7755
child 18063 3a0a5b11ab14
equal deleted inserted replaced
18060:7cfaa4558c12 18061:cd92ca4c1331
  1288     heap()->print_extended_on(st);
  1288     heap()->print_extended_on(st);
  1289   }
  1289   }
  1290   st->print_cr("}");
  1290   st->print_cr("}");
  1291 }
  1291 }
  1292 
  1292 
  1293 void Universe::verify(bool silent, VerifyOption option) {
  1293 void Universe::verify(VerifyOption option, const char* prefix, bool silent) {
  1294   // The use of _verify_in_progress is a temporary work around for
  1294   // The use of _verify_in_progress is a temporary work around for
  1295   // 6320749.  Don't bother with a creating a class to set and clear
  1295   // 6320749.  Don't bother with a creating a class to set and clear
  1296   // it since it is only used in this method and the control flow is
  1296   // it since it is only used in this method and the control flow is
  1297   // straight forward.
  1297   // straight forward.
  1298   _verify_in_progress = true;
  1298   _verify_in_progress = true;
  1305 
  1305 
  1306   ResourceMark rm;
  1306   ResourceMark rm;
  1307   HandleMark hm;  // Handles created during verification can be zapped
  1307   HandleMark hm;  // Handles created during verification can be zapped
  1308   _verify_count++;
  1308   _verify_count++;
  1309 
  1309 
       
  1310   if (!silent) gclog_or_tty->print(prefix);
  1310   if (!silent) gclog_or_tty->print("[Verifying ");
  1311   if (!silent) gclog_or_tty->print("[Verifying ");
  1311   if (!silent) gclog_or_tty->print("threads ");
  1312   if (!silent) gclog_or_tty->print("threads ");
  1312   Threads::verify();
  1313   Threads::verify();
       
  1314   if (!silent) gclog_or_tty->print("heap ");
  1313   heap()->verify(silent, option);
  1315   heap()->verify(silent, option);
  1314 
       
  1315   if (!silent) gclog_or_tty->print("syms ");
  1316   if (!silent) gclog_or_tty->print("syms ");
  1316   SymbolTable::verify();
  1317   SymbolTable::verify();
  1317   if (!silent) gclog_or_tty->print("strs ");
  1318   if (!silent) gclog_or_tty->print("strs ");
  1318   StringTable::verify();
  1319   StringTable::verify();
  1319   {
  1320   {