--- a/hotspot/src/share/vm/classfile/verifier.cpp Thu Jul 20 17:23:24 2017 -0700
+++ b/hotspot/src/share/vm/classfile/verifier.cpp Fri Jul 21 09:50:12 2017 +0200
@@ -34,6 +34,7 @@
#include "interpreter/bytecodes.hpp"
#include "interpreter/bytecodeStream.hpp"
#include "logging/log.hpp"
+#include "logging/logStream.hpp"
#include "memory/oopFactory.hpp"
#include "memory/resourceArea.hpp"
#include "oops/instanceKlass.hpp"
@@ -191,11 +192,15 @@
klass, message_buffer, message_buffer_len, THREAD);
}
- if (log_is_enabled(Info, class, init)){
- log_end_verification(Log(class, init)::info_stream(), klassName, exception_name, THREAD);
+ LogTarget(Info, class, init) lt1;
+ if (lt1.is_enabled()) {
+ LogStream ls(lt1);
+ log_end_verification(&ls, klassName, exception_name, THREAD);
}
- if (log_is_enabled(Info, verification)){
- log_end_verification(Log(verification)::info_stream(), klassName, exception_name, THREAD);
+ LogTarget(Info, verification) lt2;
+ if (lt2.is_enabled()) {
+ LogStream ls(lt2);
+ log_end_verification(&ls, klassName, exception_name, THREAD);
}
if (HAS_PENDING_EXCEPTION) {
@@ -662,9 +667,11 @@
StackMapTable stackmap_table(&reader, ¤t_frame, max_locals, max_stack,
code_data, code_length, CHECK_VERIFY(this));
- if (log_is_enabled(Info, verification)) {
+ LogTarget(Info, verification) lt;
+ if (lt.is_enabled()) {
ResourceMark rm(THREAD);
- stackmap_table.print_on(Log(verification)::info_stream());
+ LogStream ls(lt);
+ stackmap_table.print_on(&ls);
}
RawBytecodeStream bcs(m);
@@ -704,10 +711,12 @@
VerificationType type, type2;
VerificationType atype;
- if (log_is_enabled(Info, verification)) {
+ LogTarget(Info, verification) lt;
+ if (lt.is_enabled()) {
ResourceMark rm(THREAD);
- current_frame.print_on(Log(verification)::info_stream());
- log_info(verification)("offset = %d, opcode = %s", bci, Bytecodes::name(opcode));
+ LogStream ls(lt);
+ current_frame.print_on(&ls);
+ lt.print("offset = %d, opcode = %s", bci, Bytecodes::name(opcode));
}
// Make sure wide instruction is in correct format