--- old/src/share/vm/code/nmethod.cpp 2015-09-25 16:23:20.126913976 +0200 +++ new/src/share/vm/code/nmethod.cpp 2015-09-25 16:23:19.954913982 +0200 @@ -31,7 +31,7 @@ #include "compiler/abstractCompiler.hpp" #include "compiler/compileBroker.hpp" #include "compiler/compileLog.hpp" -#include "compiler/compilerOracle.hpp" +#include "compiler/compilerDirectives.hpp" #include "compiler/disassembler.hpp" #include "interpreter/bytecode.hpp" #include "oops/methodData.hpp" @@ -504,9 +504,6 @@ basic_lock_owner_sp_offset, basic_lock_sp_offset, oop_maps); NOT_PRODUCT(if (nm != NULL) nmethod_stats.note_native_nmethod(nm)); - if ((PrintAssembly || CompilerOracle::should_print(method)) && nm != NULL) { - Disassembler::decode(nm); - } } // verify nmethod debug_only(if (nm) nm->verify();) // might block @@ -579,9 +576,6 @@ } } NOT_PRODUCT(nmethod_stats.note_nmethod(nm)); - if (PrintAssembly || CompilerOracle::has_option_string(method, "PrintAssembly")) { - Disassembler::decode(nm); - } } } // Do verification and logging outside CodeCache_lock. @@ -783,16 +777,8 @@ _method->is_static() == (entry_point() == _verified_entry_point), " entry points must be same for static methods and vice versa"); } - - bool printnmethods = PrintNMethods - || CompilerOracle::should_print(_method) - || CompilerOracle::has_option_string(_method, "PrintNMethods"); - if (printnmethods || PrintDebugInfo || PrintRelocations || PrintDependencies || PrintExceptionHandlers) { - print_nmethod(printnmethods); - } } - // Print a short set of xml attributes to identify this nmethod. The // output should be embedded in some other element. void nmethod::log_identity(xmlStream* log) const {