8180601: hsdis generates duplicate output for JVMCI installed code

Remove duplicated hsdis output

Reviewed-by: dnsimon, kvn
This commit is contained in:
Yasumasa Suenaga 2017-05-18 11:27:06 -07:00
parent 8d7312538b
commit f1589c23ac

View file

@ -630,7 +630,7 @@ JVMCIEnv::CodeInstallResult CodeInstaller::install(JVMCICompiler* compiler, Hand
if (nm != NULL && env == NULL) { if (nm != NULL && env == NULL) {
DirectiveSet* directive = DirectivesStack::getMatchingDirective(method, compiler); DirectiveSet* directive = DirectivesStack::getMatchingDirective(method, compiler);
bool printnmethods = directive->PrintAssemblyOption || directive->PrintNMethodsOption; bool printnmethods = directive->PrintAssemblyOption || directive->PrintNMethodsOption;
if (printnmethods || PrintDebugInfo || PrintRelocations || PrintDependencies || PrintExceptionHandlers) { if (!printnmethods && (PrintDebugInfo || PrintRelocations || PrintDependencies || PrintExceptionHandlers)) {
nm->print_nmethod(printnmethods); nm->print_nmethod(printnmethods);
} }
DirectivesStack::release(directive); DirectivesStack::release(directive);