8231659: [JVMCI] Could not work PrintAssembly for JVMCI installed code
authornever
Thu, 10 Oct 2019 11:40:59 -0700
changeset 58563 78bbb5dde2a3
parent 58562 e43ac61b89ab
child 58564 218a1a642c6f
8231659: [JVMCI] Could not work PrintAssembly for JVMCI installed code Reviewed-by: ysuenaga
src/hotspot/share/jvmci/jvmciCodeInstaller.cpp
--- a/src/hotspot/share/jvmci/jvmciCodeInstaller.cpp	Fri Oct 11 11:50:04 2019 -0400
+++ b/src/hotspot/share/jvmci/jvmciCodeInstaller.cpp	Thu Oct 10 11:40:59 2019 -0700
@@ -642,11 +642,9 @@
                                         failed_speculations, speculations, speculations_len);
     cb = nm->as_codeblob_or_null();
     if (nm != NULL && compile_state == NULL) {
+      // This compile didn't come through the CompileBroker so perform the printing here
       DirectiveSet* directive = DirectivesStack::getMatchingDirective(method, compiler);
-      bool printnmethods = directive->PrintAssemblyOption || directive->PrintNMethodsOption;
-      if (!printnmethods && (PrintDebugInfo || PrintRelocations || PrintDependencies || PrintExceptionHandlers)) {
-        nm->print_nmethod(printnmethods);
-      }
+      nm->maybe_print_nmethod(directive);
       DirectivesStack::release(directive);
     }
   }