Mercurial > hg > graal-jvmci-8
diff src/share/vm/compiler/disassembler.cpp @ 16719:b1911c1e44c8
Dump disassembly in crash log
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Thu, 07 Aug 2014 11:06:09 -0700 |
parents | 0fab2ac29847 |
children | 89152779163c |
line wrap: on
line diff
--- a/src/share/vm/compiler/disassembler.cpp Thu Aug 07 11:05:12 2014 -0700 +++ b/src/share/vm/compiler/disassembler.cpp Thu Aug 07 11:06:09 2014 -0700 @@ -493,6 +493,10 @@ void Disassembler::decode(CodeBlob* cb, outputStream* st) { if (!load_library()) return; + if (cb->is_nmethod()) { + decode((nmethod*)cb, st); + return; + } decode_env env(cb, st); env.output()->print_cr("----------------------------------------------------------------------"); env.output()->print_cr("%s at [" PTR_FORMAT ", " PTR_FORMAT "] %d bytes", cb->name(), cb->code_begin(), cb->code_end(), ((jlong)(cb->code_end() - cb->code_begin())) * sizeof(unsigned char*));