--- a/hotspot/src/share/vm/compiler/compileBroker.cpp Mon Jan 18 11:02:42 2016 +0100
+++ b/hotspot/src/share/vm/compiler/compileBroker.cpp Mon Jan 18 11:07:40 2016 -0800
@@ -1884,7 +1884,6 @@
post_compile(thread, task, event, !ci_env.failing(), &ci_env);
}
- DirectivesStack::release(directive);
pop_jni_handle_block();
methodHandle method(thread, task->method());
@@ -1893,6 +1892,15 @@
collect_statistics(thread, time, task);
+ bool printnmethods = directive->PrintAssemblyOption || directive->PrintNMethodsOption;
+ if (printnmethods || PrintDebugInfo || PrintRelocations || PrintDependencies || PrintExceptionHandlers) {
+ nmethod* nm = task->code();
+ if (nm != NULL) {
+ nm->print_nmethod(printnmethods);
+ }
+ }
+ DirectivesStack::release(directive);
+
if (PrintCompilation && PrintCompilation2) {
tty->print("%7d ", (int) tty->time_stamp().milliseconds()); // print timestamp
tty->print("%4d ", compile_id); // print compilation number