mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
8153188: Use log_error(gc, verify) for logging in verification code
Reviewed-by: mgerdin, tschatzl
This commit is contained in:
parent
eeec4b781b
commit
0c5e3bcbd6
2 changed files with 8 additions and 10 deletions
|
@ -51,10 +51,10 @@ void GCLocker::verify_critical_count() {
|
|||
}
|
||||
}
|
||||
if (_jni_lock_count != count) {
|
||||
tty->print_cr("critical counts don't match: %d != %d", _jni_lock_count, count);
|
||||
log_error(gc, verify)("critical counts don't match: %d != %d", _jni_lock_count, count);
|
||||
for (JavaThread* thr = Threads::first(); thr; thr = thr->next()) {
|
||||
if (thr->in_critical()) {
|
||||
tty->print_cr(INTPTR_FORMAT " in_critical %d", p2i(thr), thr->in_critical());
|
||||
log_error(gc, verify)(INTPTR_FORMAT " in_critical %d", p2i(thr), thr->in_critical());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue