mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8013132: Add a flag to turn off the output of the verbose verification code
Reviewed-by: johnc, brutisso
This commit is contained in:
parent
19d99e3d92
commit
f0ae855b07
15 changed files with 49 additions and 61 deletions
|
@ -1270,7 +1270,7 @@ void Universe::print_heap_after_gc(outputStream* st, bool ignore_extended) {
|
|||
st->print_cr("}");
|
||||
}
|
||||
|
||||
void Universe::verify(bool silent, VerifyOption option) {
|
||||
void Universe::verify(VerifyOption option, const char* prefix, bool silent) {
|
||||
// The use of _verify_in_progress is a temporary work around for
|
||||
// 6320749. Don't bother with a creating a class to set and clear
|
||||
// it since it is only used in this method and the control flow is
|
||||
|
@ -1287,11 +1287,12 @@ void Universe::verify(bool silent, VerifyOption option) {
|
|||
HandleMark hm; // Handles created during verification can be zapped
|
||||
_verify_count++;
|
||||
|
||||
if (!silent) gclog_or_tty->print(prefix);
|
||||
if (!silent) gclog_or_tty->print("[Verifying ");
|
||||
if (!silent) gclog_or_tty->print("threads ");
|
||||
Threads::verify();
|
||||
if (!silent) gclog_or_tty->print("heap ");
|
||||
heap()->verify(silent, option);
|
||||
|
||||
if (!silent) gclog_or_tty->print("syms ");
|
||||
SymbolTable::verify();
|
||||
if (!silent) gclog_or_tty->print("strs ");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue