hotspot/src/share/vm/prims/jvmtiThreadState.cpp
changeset 37992 c7ec6a3275f7
parent 35492 c8c0273e6b91
child 42895 c97cd79636ec
equal deleted inserted replaced
37991:ce2e1e55f28f 37992:c7ec6a3275f7
   222 
   222 
   223   ResourceMark rm;
   223   ResourceMark rm;
   224   RegisterMap reg_map(get_thread());
   224   RegisterMap reg_map(get_thread());
   225   javaVFrame *jvf = get_thread()->last_java_vframe(&reg_map);
   225   javaVFrame *jvf = get_thread()->last_java_vframe(&reg_map);
   226   int n = 0;
   226   int n = 0;
   227   // tty->print_cr("CSD: counting frames on %s ...",
       
   228   //               JvmtiTrace::safe_get_thread_name(get_thread()));
       
   229   while (jvf != NULL) {
   227   while (jvf != NULL) {
   230     Method* method = jvf->method();
   228     Method* method = jvf->method();
   231     // tty->print_cr("CSD: frame - method %s.%s - loc %d",
       
   232     //               method->klass_name()->as_C_string(),
       
   233     //               method->name()->as_C_string(),
       
   234     //               jvf->bci() );
       
   235     jvf = jvf->java_sender();
   229     jvf = jvf->java_sender();
   236     n++;
   230     n++;
   237   }
   231   }
   238   // tty->print_cr("CSD: frame count: %d", n);
       
   239   return n;
   232   return n;
   240 }
   233 }
   241 
   234 
   242 
   235 
   243 void JvmtiThreadState::invalidate_cur_stack_depth() {
   236 void JvmtiThreadState::invalidate_cur_stack_depth() {