--- 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;