Mercurial > hg > graal-compiler
diff src/share/vm/utilities/debug.cpp @ 2008:2f644f85485d
6961690: load oops from constant table on SPARC
Summary: oops should be loaded from the constant table of an nmethod instead of materializing them with a long code sequence.
Reviewed-by: never, kvn
author | twisti |
---|---|
date | Fri, 03 Dec 2010 01:34:31 -0800 |
parents | f95d63e2154a |
children | 36c186bcc085 |
line wrap: on
line diff
--- a/src/share/vm/utilities/debug.cpp Thu Dec 02 17:21:12 2010 -0800 +++ b/src/share/vm/utilities/debug.cpp Fri Dec 03 01:34:31 2010 -0800 @@ -399,8 +399,14 @@ extern "C" void disnm(intptr_t p) { Command c("disnm"); CodeBlob* cb = CodeCache::find_blob((address) p); - cb->print(); - Disassembler::decode(cb); + nmethod* nm = cb->as_nmethod_or_null(); + if (nm) { + nm->print(); + Disassembler::decode(nm); + } else { + cb->print(); + Disassembler::decode(cb); + } }