comparison src/share/vm/code/nmethod.cpp @ 6999:679e6584c177

added ScopedDebugValue to add values of interest to hs_err crash logs
author Doug Simon <doug.simon@oracle.com>
date Wed, 21 Nov 2012 19:23:43 +0100
parents 2cb439954abf
children bf2ea3ed3bce
comparison
equal deleted inserted replaced
6998:49f0841607b7 6999:679e6584c177
40 #include "runtime/sharedRuntime.hpp" 40 #include "runtime/sharedRuntime.hpp"
41 #include "runtime/sweeper.hpp" 41 #include "runtime/sweeper.hpp"
42 #include "utilities/dtrace.hpp" 42 #include "utilities/dtrace.hpp"
43 #include "utilities/events.hpp" 43 #include "utilities/events.hpp"
44 #include "utilities/xmlstream.hpp" 44 #include "utilities/xmlstream.hpp"
45 #include "utilities/debug.hpp"
45 #ifdef SHARK 46 #ifdef SHARK
46 #include "shark/sharkCompiler.hpp" 47 #include "shark/sharkCompiler.hpp"
47 #endif 48 #endif
48 #ifdef GRAAL 49 #ifdef GRAAL
49 #include "graal/graalJavaAccess.hpp" 50 #include "graal/graalJavaAccess.hpp"
2976 DebugInformationRecorder::print_statistics(); 2977 DebugInformationRecorder::print_statistics();
2977 nmethod_stats.print_pc_stats(); 2978 nmethod_stats.print_pc_stats();
2978 Dependencies::print_statistics(); 2979 Dependencies::print_statistics();
2979 if (xtty != NULL) xtty->tail("statistics"); 2980 if (xtty != NULL) xtty->tail("statistics");
2980 } 2981 }
2982
2983 #ifdef GRAAL
2984 void DebugScopedNMethod::print_on(outputStream* st) {
2985 if (_nm != NULL) {
2986 st->print("nmethod@%p", _nm);
2987 Method* method = _nm->method();
2988 if (method != NULL) {
2989 char holder[O_BUFLEN];
2990 char nameAndSig[O_BUFLEN];
2991 method->method_holder()->name()->as_C_string(holder, O_BUFLEN);
2992 method->name_and_sig_as_C_string(nameAndSig, O_BUFLEN);
2993 st->print(" - %s::%s", holder, nameAndSig);
2994 }
2995 }
2996 }
2997 #endif