mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
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:
parent
6fa1bf99e2
commit
b4d28f36fc
10 changed files with 31 additions and 47 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue