comparison src/share/vm/memory/universe.cpp @ 10186:b06ac540229e

8013132: Add a flag to turn off the output of the verbose verification code Reviewed-by: johnc, brutisso
author stefank
date Wed, 24 Apr 2013 20:13:37 +0200
parents 8be1318fbe77
children 92ef81e2f571 7ee0d5c53c78
comparison
equal deleted inserted replaced
10185:d50cc62e94ff 10186:b06ac540229e
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 {