< prev index next >

src/hotspot/os_cpu/solaris_sparc/thread_solaris_sparc.cpp

Print this page

        

@@ -25,10 +25,18 @@
 #include "precompiled.hpp"
 #include "memory/metaspaceShared.hpp"
 #include "runtime/frame.inline.hpp"
 #include "runtime/thread.inline.hpp"
 
+frame JavaThread::pd_last_frame() {
+  assert(has_last_Java_frame(), "must have last_Java_sp() when suspended");
+  assert(_anchor.walkable(), "thread has not dumped its register windows yet");
+
+  assert(_anchor.last_Java_pc() != NULL, "Ack no pc!");
+  return frame(last_Java_sp(), frame::unpatchable, _anchor.last_Java_pc());
+}
+
 // For Forte Analyzer AsyncGetCallTrace profiling support - thread is
 // currently interrupted by SIGPROF
 //
 // NOTE: On Solaris, register windows are flushed in the signal handler
 // except for possibly the top frame.
< prev index next >