hotspot/src/share/vm/compiler/compileBroker.cpp
changeset 36078 954c49c0ba57
parent 35845 30025047885d
child 36299 3d75bb0d749b
--- a/hotspot/src/share/vm/compiler/compileBroker.cpp	Mon Feb 15 23:45:15 2016 +0300
+++ b/hotspot/src/share/vm/compiler/compileBroker.cpp	Tue Feb 16 09:49:58 2016 -0800
@@ -1919,12 +1919,9 @@
 
   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);