< prev index next >

src/hotspot/share/runtime/deoptimization.cpp

Print this page




1657         int dos = (pdata == NULL)? 0: pdata->trap_state();
1658         if (dos != 0) {
1659           xtty->print(" state='%s'", format_trap_state(buf, sizeof(buf), dos));
1660           if (trap_state_is_recompiled(dos)) {
1661             int recnt2 = trap_mdo->overflow_recompile_count();
1662             if (recnt2 != 0)
1663               xtty->print(" recompiles2='%d'", recnt2);
1664           }
1665         }
1666       }
1667       if (xtty != NULL) {
1668         xtty->stamp();
1669         xtty->end_head();
1670       }
1671       if (TraceDeoptimization) {  // make noise on the tty
1672         tty->print("Uncommon trap occurred in");
1673         nm->method()->print_short_name(tty);
1674         tty->print(" compiler=%s compile_id=%d", nm->compiler_name(), nm->compile_id());
1675 #if INCLUDE_JVMCI
1676         if (nm->is_nmethod()) {
1677           oop installedCode = nm->as_nmethod()->jvmci_installed_code();
1678           if (installedCode != NULL) {
1679             oop installedCodeName = NULL;
1680             if (installedCode->is_a(InstalledCode::klass())) {
1681               installedCodeName = InstalledCode::name(installedCode);
1682             }
1683             if (installedCodeName != NULL) {
1684               tty->print(" (JVMCI: installedCodeName=%s) ", java_lang_String::as_utf8_string(installedCodeName));
1685             } else {
1686               tty->print(" (JVMCI: installed code has no name) ");
1687             }
1688           } else if (nm->is_compiled_by_jvmci()) {
1689             tty->print(" (JVMCI: no installed code) ");
1690           }
1691         }
1692 #endif
1693         tty->print(" (@" INTPTR_FORMAT ") thread=" UINTX_FORMAT " reason=%s action=%s unloaded_class_index=%d" JVMCI_ONLY(" debug_id=%d"),
1694                    p2i(fr.pc()),
1695                    os::current_thread_id(),
1696                    trap_reason_name(reason),
1697                    trap_action_name(action),
1698                    unloaded_class_index
1699 #if INCLUDE_JVMCI
1700                    , debug_id
1701 #endif
1702                    );
1703         if (class_name != NULL) {
1704           tty->print(unresolved ? " unresolved class: " : " symbol: ");
1705           class_name->print_symbol_on(tty);
1706         }
1707         tty->cr();
1708       }
1709       if (xtty != NULL) {




1657         int dos = (pdata == NULL)? 0: pdata->trap_state();
1658         if (dos != 0) {
1659           xtty->print(" state='%s'", format_trap_state(buf, sizeof(buf), dos));
1660           if (trap_state_is_recompiled(dos)) {
1661             int recnt2 = trap_mdo->overflow_recompile_count();
1662             if (recnt2 != 0)
1663               xtty->print(" recompiles2='%d'", recnt2);
1664           }
1665         }
1666       }
1667       if (xtty != NULL) {
1668         xtty->stamp();
1669         xtty->end_head();
1670       }
1671       if (TraceDeoptimization) {  // make noise on the tty
1672         tty->print("Uncommon trap occurred in");
1673         nm->method()->print_short_name(tty);
1674         tty->print(" compiler=%s compile_id=%d", nm->compiler_name(), nm->compile_id());
1675 #if INCLUDE_JVMCI
1676         if (nm->is_nmethod()) {
1677           char* installed_code_name = nm->as_nmethod()->jvmci_installed_code_name(buf, sizeof(buf));
1678           if (installed_code_name != NULL) {
1679             tty->print(" (JVMCI: installed code name=%s) ", installed_code_name);










1680           }
1681         }
1682 #endif
1683         tty->print(" (@" INTPTR_FORMAT ") thread=" UINTX_FORMAT " reason=%s action=%s unloaded_class_index=%d" JVMCI_ONLY(" debug_id=%d"),
1684                    p2i(fr.pc()),
1685                    os::current_thread_id(),
1686                    trap_reason_name(reason),
1687                    trap_action_name(action),
1688                    unloaded_class_index
1689 #if INCLUDE_JVMCI
1690                    , debug_id
1691 #endif
1692                    );
1693         if (class_name != NULL) {
1694           tty->print(unresolved ? " unresolved class: " : " symbol: ");
1695           class_name->print_symbol_on(tty);
1696         }
1697         tty->cr();
1698       }
1699       if (xtty != NULL) {


< prev index next >