< prev index next >

src/hotspot/os_cpu/solaris_sparc/thread_solaris_sparc.hpp

Print this page




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef OS_CPU_SOLARIS_SPARC_VM_THREAD_SOLARIS_SPARC_HPP
  26 #define OS_CPU_SOLARIS_SPARC_VM_THREAD_SOLARIS_SPARC_HPP
  27 private:
  28 
  29   void pd_initialize() {
  30     _anchor.clear();
  31     _base_of_stack_pointer        = NULL;
  32   }
  33 
  34   frame pd_last_frame() {
  35     assert(has_last_Java_frame(), "must have last_Java_sp() when suspended");
  36     assert(_anchor.walkable(), "thread has not dumped its register windows yet");
  37 
  38     assert(_anchor.last_Java_pc() != NULL, "Ack no pc!");
  39     return frame(last_Java_sp(), frame::unpatchable, _anchor.last_Java_pc());
  40   }
  41 
  42   // Sometimes the trap handler needs to record both PC and NPC.
  43   // This is a SPARC-specific companion to Thread::set_saved_exception_pc.
  44   address _saved_exception_npc;
  45 
  46   // In polling_page_safepoint_handler_blob(s) we have to tail call other
  47   // blobs without blowing any registers.  A tail call requires some
  48   // register to jump with and we can't blow any registers, so it must
  49   // be restored in the delay slot.  'restore' cannot be used as it
  50   // will chop the heads off of 64-bit %o registers in the 32-bit
  51   // build.  Instead we reload the registers using G2_thread and this
  52   // location.  Must be 64bits in the 32-bit LION build.
  53   jdouble _o_reg_temps[6];
  54 
  55   // a stack pointer older than any java frame stack pointer.  It is
  56   // used to validate stack pointers in frame::next_younger_sp (it
  57   // provides the upper bound in the range check).  This is necessary
  58   // on Solaris/SPARC since the ucontext passed to a signal handler is
  59   // sometimes corrupt and we need a way to check the extracted sp.
  60   intptr_t* _base_of_stack_pointer;




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef OS_CPU_SOLARIS_SPARC_VM_THREAD_SOLARIS_SPARC_HPP
  26 #define OS_CPU_SOLARIS_SPARC_VM_THREAD_SOLARIS_SPARC_HPP
  27 private:
  28 
  29   void pd_initialize() {
  30     _anchor.clear();
  31     _base_of_stack_pointer        = NULL;
  32   }
  33 
  34   frame pd_last_frame();






  35 
  36   // Sometimes the trap handler needs to record both PC and NPC.
  37   // This is a SPARC-specific companion to Thread::set_saved_exception_pc.
  38   address _saved_exception_npc;
  39 
  40   // In polling_page_safepoint_handler_blob(s) we have to tail call other
  41   // blobs without blowing any registers.  A tail call requires some
  42   // register to jump with and we can't blow any registers, so it must
  43   // be restored in the delay slot.  'restore' cannot be used as it
  44   // will chop the heads off of 64-bit %o registers in the 32-bit
  45   // build.  Instead we reload the registers using G2_thread and this
  46   // location.  Must be 64bits in the 32-bit LION build.
  47   jdouble _o_reg_temps[6];
  48 
  49   // a stack pointer older than any java frame stack pointer.  It is
  50   // used to validate stack pointers in frame::next_younger_sp (it
  51   // provides the upper bound in the range check).  This is necessary
  52   // on Solaris/SPARC since the ucontext passed to a signal handler is
  53   // sometimes corrupt and we need a way to check the extracted sp.
  54   intptr_t* _base_of_stack_pointer;


< prev index next >