< prev index next >

src/hotspot/share/runtime/rframe.cpp

Print this page




 143   vf = vf->top();
 144   _vf = javaVFrame::cast(vf);
 145   _method = CodeCache::find_nmethod(_fr.pc())->method();
 146   assert(_method, "should have found a method");
 147 #ifndef PRODUCT
 148   _invocations = _method->compiled_invocation_count();
 149 #endif
 150 }
 151 
 152 void InterpretedRFrame::init() {
 153   _invocations = _method->invocation_count() + _method->backedge_count();
 154 }
 155 
 156 void RFrame::print(const char* kind) {
 157 #ifndef PRODUCT
 158 #if COMPILER2_OR_JVMCI
 159   int cnt = top_method()->interpreter_invocation_count();
 160 #else
 161   int cnt = top_method()->invocation_count();
 162 #endif

 163   tty->print("%3d %s ", _num, is_interpreted() ? "I" : "C");
 164   top_method()->print_short_name(tty);
 165   tty->print_cr(": inv=%5d(%d) cst=%4d", _invocations, cnt, cost());
 166 #endif
 167 }
 168 
 169 void CompiledRFrame::print() {
 170   RFrame::print("comp");
 171 }
 172 
 173 void InterpretedRFrame::print() {
 174   RFrame::print("int.");
 175 }
 176 
 177 void DeoptimizedRFrame::print() {
 178   RFrame::print("deopt.");
 179 }


 143   vf = vf->top();
 144   _vf = javaVFrame::cast(vf);
 145   _method = CodeCache::find_nmethod(_fr.pc())->method();
 146   assert(_method, "should have found a method");
 147 #ifndef PRODUCT
 148   _invocations = _method->compiled_invocation_count();
 149 #endif
 150 }
 151 
 152 void InterpretedRFrame::init() {
 153   _invocations = _method->invocation_count() + _method->backedge_count();
 154 }
 155 
 156 void RFrame::print(const char* kind) {
 157 #ifndef PRODUCT
 158 #if COMPILER2_OR_JVMCI
 159   int cnt = top_method()->interpreter_invocation_count();
 160 #else
 161   int cnt = top_method()->invocation_count();
 162 #endif
 163   ResourceMark rm;
 164   tty->print("%3d %s ", _num, is_interpreted() ? "I" : "C");
 165   top_method()->print_short_name(tty);
 166   tty->print_cr(": inv=%5d(%d) cst=%4d", _invocations, cnt, cost());
 167 #endif
 168 }
 169 
 170 void CompiledRFrame::print() {
 171   RFrame::print("comp");
 172 }
 173 
 174 void InterpretedRFrame::print() {
 175   RFrame::print("int.");
 176 }
 177 
 178 void DeoptimizedRFrame::print() {
 179   RFrame::print("deopt.");
 180 }
< prev index next >