< prev index next >

src/share/vm/compiler/compileBroker.cpp

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

@@ -1917,16 +1917,13 @@
 
   DTRACE_METHOD_COMPILE_END_PROBE(method, compiler_name(task_level), task->is_success());
 
   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);
-    }
+    nm->maybe_print_nmethod(directive);
   }
   DirectivesStack::release(directive);
 
   if (PrintCompilation && PrintCompilation2) {
     tty->print("%7d ", (int) tty->time_stamp().milliseconds());  // print timestamp
< prev index next >