changeset 30187:c48efcf14cdc

8075269: Extend -XX:CompileCommand=print,* to work for MethodHandle.invokeBasic/linkTo* Reviewed-by: jrose, kvn, dlong
author vlivanov
date Fri, 20 Mar 2015 11:41:34 -0700
parents a416fa6a0fe7
children 40397cc74488
files hotspot/src/share/vm/code/nmethod.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
     }
   }