< prev index next >

src/os_cpu/bsd_x86/vm/thread_bsd_x86.cpp

Print this page

        

@@ -43,11 +43,11 @@
   assert(this->is_Java_thread(), "must be JavaThread");
   JavaThread* jt = (JavaThread *)this;
 
   // If we have a last_Java_frame, then we should use it even if
   // isInJava == true.  It should be more reliable than ucontext info.
-  if (jt->has_last_Java_frame()) {
+  if (jt->has_last_Java_frame() && jt->frame_anchor()->walkable()) {
     *fr_addr = jt->pd_last_frame();
     return true;
   }
 
   // At this point, we don't have a last_Java_frame, so
< prev index next >