< prev index next >

src/share/vm/code/nmethod.cpp

Print this page
rev 10231 : 8149969: [JVMCI] PrintNMethods is ignored for CompilerToVM.installCode when not called from the broker

*** 31,40 **** --- 31,41 ---- #include "code/scopeDesc.hpp" #include "compiler/abstractCompiler.hpp" #include "compiler/compileBroker.hpp" #include "compiler/compileLog.hpp" #include "compiler/compilerDirectives.hpp" + #include "compiler/directivesParser.hpp" #include "compiler/disassembler.hpp" #include "interpreter/bytecode.hpp" #include "oops/methodData.hpp" #include "oops/oop.inline.hpp" #include "prims/jvmtiRedefineClassesTrace.hpp"
*** 963,972 **** --- 964,979 ---- CompileTask::print(st, this, msg, /*short_form:*/ false); } } } + void nmethod::maybe_print_nmethod(DirectiveSet* directive) { + bool printnmethods = directive->PrintAssemblyOption || directive->PrintNMethodsOption; + if (printnmethods || PrintDebugInfo || PrintRelocations || PrintDependencies || PrintExceptionHandlers) { + print_nmethod(printnmethods); + } + } void nmethod::print_nmethod(bool printmethod) { ttyLocker ttyl; // keep the following output all in one block if (xtty != NULL) { xtty->begin_head("print_nmethod");
< prev index next >