--- old/src/hotspot/share/runtime/deoptimization.cpp 2017-11-02 08:30:09.000000000 +0100 +++ new/src/hotspot/share/runtime/deoptimization.cpp 2017-11-02 08:30:09.000000000 +0100 @@ -1674,19 +1674,9 @@ tty->print(" compiler=%s compile_id=%d", nm->compiler_name(), nm->compile_id()); #if INCLUDE_JVMCI if (nm->is_nmethod()) { - oop installedCode = nm->as_nmethod()->jvmci_installed_code(); - if (installedCode != NULL) { - oop installedCodeName = NULL; - if (installedCode->is_a(InstalledCode::klass())) { - installedCodeName = InstalledCode::name(installedCode); - } - if (installedCodeName != NULL) { - tty->print(" (JVMCI: installedCodeName=%s) ", java_lang_String::as_utf8_string(installedCodeName)); - } else { - tty->print(" (JVMCI: installed code has no name) "); - } - } else if (nm->is_compiled_by_jvmci()) { - tty->print(" (JVMCI: no installed code) "); + char* installed_code_name = nm->as_nmethod()->jvmci_installed_code_name(buf, sizeof(buf)); + if (installed_code_name != NULL) { + tty->print(" (JVMCI: installed code name=%s) ", installed_code_name); } } #endif