comparison src/share/vm/runtime/deoptimization.cpp @ 12517:b2882f4ab612

Add an optional name to HotSpotNmethod. Print it during deopt. Use it when installing a Truffle compilation
author Gilles Duboscq <duboscq@ssw.jku.at>
date Tue, 22 Oct 2013 15:10:14 +0200
parents 359f7e70ae7f
children d1f8d0538b79
comparison
equal deleted inserted replaced
12516:2ae286218721 12517:b2882f4ab612
87 #endif 87 #endif
88 #endif 88 #endif
89 89
90 #ifdef GRAAL 90 #ifdef GRAAL
91 #include "graal/graalCompiler.hpp" 91 #include "graal/graalCompiler.hpp"
92 #include "graal/graalJavaAccess.hpp"
92 #endif 93 #endif
93 94
94 95
95 bool DeoptimizationMarker::_is_active = false; 96 bool DeoptimizationMarker::_is_active = false;
96 97
1418 xtty->end_head(); 1419 xtty->end_head();
1419 } 1420 }
1420 if (TraceDeoptimization) { // make noise on the tty 1421 if (TraceDeoptimization) { // make noise on the tty
1421 tty->print("Uncommon trap occurred in"); 1422 tty->print("Uncommon trap occurred in");
1422 nm->method()->print_short_name(tty); 1423 nm->method()->print_short_name(tty);
1424 #ifdef GRAAL
1425 oop installedCode = nm->graal_installed_code();
1426 if (installedCode != NULL) {
1427 oop installedCodeName = HotSpotNmethod::name(installedCode);
1428 if (installedCodeName != NULL) {
1429 tty->print(" (Graal: installedCodeName=%s) ", java_lang_String::as_utf8_string(installedCodeName));
1430 } else {
1431 tty->print(" (Graal: installed code has no name) ");
1432 }
1433 } else {
1434 tty->print(" (Graal: no installed code) ");
1435 }
1436 #endif //GRAAL
1423 tty->print(" (@" INTPTR_FORMAT ") thread=" UINTX_FORMAT " reason=%s action=%s unloaded_class_index=%d", 1437 tty->print(" (@" INTPTR_FORMAT ") thread=" UINTX_FORMAT " reason=%s action=%s unloaded_class_index=%d",
1424 fr.pc(), 1438 fr.pc(),
1425 os::current_thread_id(), 1439 os::current_thread_id(),
1426 trap_reason_name(reason), 1440 trap_reason_name(reason),
1427 trap_action_name(action), 1441 trap_action_name(action),