8153188: Use log_error(gc, verify) for logging in verification code

Reviewed-by: mgerdin, tschatzl
This commit is contained in:
Bengt Rutisson 2016-04-01 07:08:55 +02:00
parent eeec4b781b
commit 0c5e3bcbd6
2 changed files with 8 additions and 10 deletions

View file

@ -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());
}
}
}