8075269: Extend -XX:CompileCommand=print,* to work for MethodHandle.invokeBasic/linkTo*

Reviewed-by: jrose, kvn, dlong
This commit is contained in:
Vladimir Ivanov 2015-03-20 11:41:34 -07:00
parent e53337224d
commit d6f7c9f4a6

View file

@ -504,7 +504,7 @@ nmethod* nmethod::new_native_nmethod(methodHandle method,
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);
}
}