# HG changeset patch # User vlivanov # Date 1426876894 25200 # Node ID 40397cc74488c383451857acefe640b9a7c3cfa4 # Parent c48efcf14cdcc9951b7f5a811c68264f9075770b 8075266: Show runtime call details when printing machine code Reviewed-by: jrose, kvn diff -r c48efcf14cdc -r 40397cc74488 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 @@ -2837,11 +2837,21 @@ st.print(")"); return st.as_string(); } + case relocInfo::runtime_call_type: { + stringStream st; + st.print("runtime_call"); + runtime_call_Relocation* r = iter.runtime_call_reloc(); + address dest = r->destination(); + CodeBlob* cb = CodeCache::find_blob(dest); + if (cb != NULL) { + st.print(" %s", cb->name()); + } + return st.as_string(); + } case relocInfo::virtual_call_type: return "virtual_call"; case relocInfo::opt_virtual_call_type: return "optimized virtual_call"; case relocInfo::static_call_type: return "static_call"; case relocInfo::static_stub_type: return "static_stub"; - case relocInfo::runtime_call_type: return "runtime_call"; case relocInfo::external_word_type: return "external_word"; case relocInfo::internal_word_type: return "internal_word"; case relocInfo::section_word_type: return "section_word";