diff -r ce2e1e55f28f -r c7ec6a3275f7 hotspot/src/share/vm/prims/jvmtiEnter.xsl
--- a/hotspot/src/share/vm/prims/jvmtiEnter.xsl Tue Apr 19 12:30:00 2016 +0200
+++ b/hotspot/src/share/vm/prims/jvmtiEnter.xsl Tue Apr 19 14:14:04 2016 +0200
@@ -40,6 +40,7 @@
# include "memory/resourceArea.hpp"
# include "utilities/macros.hpp"
#if INCLUDE_JVMTI
+# include "logging/log.hpp"
# include "oops/oop.inline.hpp"
# include "prims/jvmtiEnter.hpp"
# include "prims/jvmtiRawMonitor.hpp"
@@ -415,7 +416,7 @@
if (trace_flags) {
- tty->print_cr("JVMTI [non-attached thread] %s %s", func_name,
+ log_trace(jvmti)("[non-attached thread] %s %s", func_name,
JvmtiUtil::error_name(JVMTI_ERROR_UNATTACHED_THREAD));
@@ -452,7 +453,7 @@
if (trace_flags) {
- tty->print_cr("JVMTI [%s] %s %s", curr_thread_name, func_name,
+ log_trace(jvmti)("[%s] %s %s", curr_thread_name, func_name,
JvmtiUtil::error_name(JVMTI_ERROR_MUST_POSSESS_CAPABILITY));
}
@@ -486,7 +487,7 @@
if (trace_flags) {
- tty->print_cr("JVMTI [-] %s %s", func_name,
+ log_trace(jvmti)("[-] %s %s", func_name,
JvmtiUtil::error_name(JVMTI_ERROR_WRONG_PHASE));
}
@@ -509,7 +510,7 @@
if (trace_flags) {
- tty->print_cr("JVMTI [-] %s %s", func_name,
+ log_trace(jvmti)("[-] %s %s", func_name,
JvmtiUtil::error_name(JVMTI_ERROR_WRONG_PHASE));
}
@@ -522,7 +523,7 @@
if (trace_flags) {
- tty->print_cr("JVMTI [-] %s %s", func_name,
+ log_trace(jvmti)("[-] %s %s", func_name,
JvmtiUtil::error_name(JVMTI_ERROR_WRONG_PHASE));
}
@@ -541,7 +542,7 @@
if (trace_flags) {
- tty->print_cr("JVMTI [%s] %s %s env=" PTR_FORMAT, curr_thread_name, func_name,
+ log_trace(jvmti)("[%s] %s %s env=" PTR_FORMAT, curr_thread_name, func_name,
JvmtiUtil::error_name(JVMTI_ERROR_INVALID_ENVIRONMENT), p2i(env));
}
@@ -667,7 +668,7 @@
}
- tty->print_cr("JVMTI [%s] %s } %s - erroneous arg is
+ log_error(jvmti)("[%s] %s } %s - erroneous arg is
", curr_thread_name, func_name,
@@ -692,10 +693,10 @@
}
- tty->print_cr("JVMTI [%s] %s } %s", curr_thread_name, func_name,
+ log_error(jvmti)("[%s] %s } %s", curr_thread_name, func_name,
JvmtiUtil::error_name(err));
} else if ((trace_flags & JvmtiTrace::SHOW_OUT) != 0) {
- tty->print_cr("JVMTI [%s] %s }", curr_thread_name, func_name);
+ log_trace(jvmti)("[%s] %s }", curr_thread_name, func_name);
}
@@ -703,7 +704,7 @@
- tty->print_cr("JVMTI [%s] %s {
+ log_trace(jvmti)("[%s] %s {