8180601: hsdis generates duplicate output for JVMCI installed code
authorysuenaga
Thu, 18 May 2017 11:27:06 -0700
changeset 46479 a10af96a2dbb
parent 46478 f800745ba3cb
child 46480 77e911558d21
8180601: hsdis generates duplicate output for JVMCI installed code Summary: remove duplicated hsdis output Reviewed-by: dnsimon, kvn
hotspot/src/share/vm/jvmci/jvmciCodeInstaller.cpp
--- a/hotspot/src/share/vm/jvmci/jvmciCodeInstaller.cpp	Thu May 18 17:20:59 2017 +0200
+++ b/hotspot/src/share/vm/jvmci/jvmciCodeInstaller.cpp	Thu May 18 11:27:06 2017 -0700
@@ -630,7 +630,7 @@
     if (nm != NULL && env == NULL) {
       DirectiveSet* directive = DirectivesStack::getMatchingDirective(method, compiler);
       bool printnmethods = directive->PrintAssemblyOption || directive->PrintNMethodsOption;
-      if (printnmethods || PrintDebugInfo || PrintRelocations || PrintDependencies || PrintExceptionHandlers) {
+      if (!printnmethods && (PrintDebugInfo || PrintRelocations || PrintDependencies || PrintExceptionHandlers)) {
         nm->print_nmethod(printnmethods);
       }
       DirectivesStack::release(directive);