Mercurial > hg > truffle
comparison src/share/vm/code/nmethod.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 | e13c65f874e5 |
children | d114be1b5b3f |
comparison
equal
deleted
inserted
replaced
21152:d7361045859a | 21153:1621af5cb444 |
---|---|
3521 pc_nmethod_stats.print_pc_stats(); | 3521 pc_nmethod_stats.print_pc_stats(); |
3522 #endif | 3522 #endif |
3523 Dependencies::print_statistics(); | 3523 Dependencies::print_statistics(); |
3524 if (xtty != NULL) xtty->tail("statistics"); | 3524 if (xtty != NULL) xtty->tail("statistics"); |
3525 } | 3525 } |
3526 | |
3527 #ifdef GRAAL | |
3528 char* nmethod::graal_installed_code_name(char* buf, size_t buflen) { | |
3529 if (!this->is_compiled_by_graal()) { | |
3530 return NULL; | |
3531 } | |
3532 oop installedCode = this->graal_installed_code(); | |
3533 if (installedCode != NULL) { | |
3534 oop installedCodeName = NULL; | |
3535 if (installedCode->is_a(InstalledCode::klass())) { | |
3536 installedCodeName = InstalledCode::name(installedCode); | |
3537 } | |
3538 if (installedCodeName != NULL) { | |
3539 return java_lang_String::as_utf8_string(installedCodeName, buf, buflen); | |
3540 } else { | |
3541 jio_snprintf(buf, buflen, "null"); | |
3542 return buf; | |
3543 } | |
3544 } | |
3545 jio_snprintf(buf, buflen, "noInstalledCode"); | |
3546 return buf; | |
3547 } | |
3548 #endif |