8075269: Extend -XX:CompileCommand=print,* to work for MethodHandle.invokeBasic/linkTo*
authorvlivanov
Fri, 20 Mar 2015 11:41:34 -0700
changeset 30187 c48efcf14cdc
parent 30186 a416fa6a0fe7
child 30188 40397cc74488
8075269: Extend -XX:CompileCommand=print,* to work for MethodHandle.invokeBasic/linkTo* Reviewed-by: jrose, kvn, dlong
hotspot/src/share/vm/code/nmethod.cpp
--- a/hotspot/src/share/vm/code/nmethod.cpp	Fri Mar 20 11:41:34 2015 -0700
+++ b/hotspot/src/share/vm/code/nmethod.cpp	Fri Mar 20 11:41:34 2015 -0700
@@ -504,7 +504,7 @@
                                             basic_lock_owner_sp_offset,
                                             basic_lock_sp_offset, oop_maps);
     NOT_PRODUCT(if (nm != NULL)  nmethod_stats.note_native_nmethod(nm));
-    if (PrintAssembly && nm != NULL) {
+    if ((PrintAssembly || CompilerOracle::should_print(method)) && nm != NULL) {
       Disassembler::decode(nm);
     }
   }