hotspot/src/share/vm/jvmci/jvmciEnv.cpp
changeset 36078 954c49c0ba57
parent 35592 5814f874d736
child 36508 5f9eee6b383b
--- a/hotspot/src/share/vm/jvmci/jvmciEnv.cpp	Mon Feb 15 23:45:15 2016 +0300
+++ b/hotspot/src/share/vm/jvmci/jvmciEnv.cpp	Tue Feb 16 09:49:58 2016 -0800
@@ -591,6 +591,13 @@
   // 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;