< prev index next >

src/share/vm/jvmci/jvmciEnv.cpp

Print this page
rev 10231 : 8149969: [JVMCI] PrintNMethods is ignored for CompilerToVM.installCode when not called from the broker

@@ -589,10 +589,17 @@
   }
 
   // JVMTI -- compiled method notification (must be done outside lock)
   if (nm != NULL) {
     nm->post_compiled_method_load_event();
+
+    if (env == NULL) {
+      // This compile didn't come through the CompileBroker so perform the printing here
+      DirectiveSet* directive = DirectivesStack::getMatchingDirective(method, compiler);
+      nm->maybe_print_nmethod(directive);
+      DirectivesStack::release(directive);
+    }
   }
 
   return result;
 }
 
< prev index next >