8232735: Convert PrintJNIResolving to Unified Logging

Converted the existing output at debug level because it is noisy

Reviewed-by: iklam, dholmes
This commit is contained in:
Coleen Phillimore 2019-11-11 12:11:34 -05:00
parent 6fa1bf99e2
commit b4d28f36fc
10 changed files with 31 additions and 47 deletions

View file

@ -36,6 +36,8 @@
#include "interpreter/bytecodes.hpp"
#include "interpreter/interpreter.hpp"
#include "interpreter/oopMapCache.hpp"
#include "logging/log.hpp"
#include "logging/logTag.hpp"
#include "memory/allocation.inline.hpp"
#include "memory/heapInspection.hpp"
#include "memory/metadataFactory.hpp"
@ -448,11 +450,11 @@ bool Method::register_native(Klass* k, Symbol* name, Symbol* signature, address
} else {
method->clear_native_function();
}
if (PrintJNIResolving) {
if (log_is_enabled(Debug, jni, resolve)) {
ResourceMark rm(THREAD);
tty->print_cr("[Registering JNI native method %s.%s]",
method->method_holder()->external_name(),
method->name()->as_C_string());
log_debug(jni, resolve)("[Registering JNI native method %s.%s]",
method->method_holder()->external_name(),
method->name()->as_C_string());
}
return true;
}