8180601: hsdis generates duplicate output for JVMCI installed code
Summary: remove duplicated hsdis output
Reviewed-by: dnsimon, kvn
--- 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);