8149969: [JVMCI] PrintNMethods is ignored for CompilerToVM.installCode when not called from the broker

Reviewed-by: kvn
This commit is contained in:
Tom Rodriguez 2016-02-16 09:49:58 -08:00
parent 03174f3030
commit 05730d99ba
4 changed files with 21 additions and 6 deletions

View file

@ -1919,12 +1919,9 @@ void CompileBroker::invoke_compiler_on_method(CompileTask* task) {
collect_statistics(thread, time, task);
bool printnmethods = directive->PrintAssemblyOption || directive->PrintNMethodsOption;
if (printnmethods || PrintDebugInfo || PrintRelocations || PrintDependencies || PrintExceptionHandlers) {
nmethod* nm = task->code();
if (nm != NULL) {
nm->print_nmethod(printnmethods);
}
nmethod* nm = task->code();
if (nm != NULL) {
nm->maybe_print_nmethod(directive);
}
DirectivesStack::release(directive);