Mercurial > hg > truffle
diff src/share/vm/compiler/disassembler.cpp @ 21153:1621af5cb444
Print Graal installed code name when printing frames or diassembly
author | Gilles Duboscq <gilles.m.duboscq@oracle.com> |
---|---|
date | Wed, 29 Apr 2015 14:41:03 +0200 |
parents | 7848fc12602b |
children | be896a1983c0 |
line wrap: on
line diff
--- a/src/share/vm/compiler/disassembler.cpp Wed Apr 29 14:39:48 2015 +0200 +++ b/src/share/vm/compiler/disassembler.cpp Wed Apr 29 14:41:03 2015 +0200 @@ -529,6 +529,15 @@ nm->method()->method_holder()->name()->print_symbol_on(env.output()); env.output()->print("."); nm->method()->name()->print_symbol_on(env.output()); +#ifdef GRAAL + { + char buffer[O_BUFLEN]; + char* graalName = nm->graal_installed_code_name(buffer, O_BUFLEN); + if (graalName != NULL) { + env.output()->print(" (%s)", graalName); + } + } +#endif env.output()->print_cr(" [" PTR_FORMAT ", " PTR_FORMAT "] %d bytes", p, end, ((jlong)(end - p))); // If there has been profiling, print the buckets.