68 void set_saved_exception_npc(address a) { _saved_exception_npc = a; }
69
70
71 public:
72
73 intptr_t* base_of_stack_pointer() { return _base_of_stack_pointer; }
74
75 void set_base_of_stack_pointer(intptr_t* base_sp) {
76 _base_of_stack_pointer = base_sp;
77 }
78
79 void record_base_of_stack_pointer() {
80 intptr_t *sp = (intptr_t *)(((intptr_t)StubRoutines::Sparc::flush_callers_register_windows_func()()));
81 intptr_t *ysp;
82 while((ysp = (intptr_t*)sp[FP->sp_offset_in_saved_window()]) != NULL) {
83 sp = (intptr_t *)((intptr_t)ysp + STACK_BIAS);
84 }
85 _base_of_stack_pointer = sp;
86 }
87
88 bool pd_get_top_frame_for_signal_handler(frame* fr_addr, void* ucontext,
89 bool isInJava);
90
91 // These routines are only used on cpu architectures that
92 // have separate register stacks (Itanium).
93 static bool register_stack_overflow() { return false; }
94 static void enable_register_stack_guard() {}
95 static void disable_register_stack_guard() {}
96
97 #endif // OS_CPU_LINUX_SPARC_VM_THREAD_LINUX_SPARC_HPP
|
68 void set_saved_exception_npc(address a) { _saved_exception_npc = a; }
69
70
71 public:
72
73 intptr_t* base_of_stack_pointer() { return _base_of_stack_pointer; }
74
75 void set_base_of_stack_pointer(intptr_t* base_sp) {
76 _base_of_stack_pointer = base_sp;
77 }
78
79 void record_base_of_stack_pointer() {
80 intptr_t *sp = (intptr_t *)(((intptr_t)StubRoutines::Sparc::flush_callers_register_windows_func()()));
81 intptr_t *ysp;
82 while((ysp = (intptr_t*)sp[FP->sp_offset_in_saved_window()]) != NULL) {
83 sp = (intptr_t *)((intptr_t)ysp + STACK_BIAS);
84 }
85 _base_of_stack_pointer = sp;
86 }
87
88 bool pd_get_top_frame_for_signal_handler(frame* fr_addr, void* ucontext, bool isInJava);
89
90 bool pd_get_top_frame_for_profiling(frame* fr_addr, void* ucontext, bool isInJava);
91
92 // These routines are only used on cpu architectures that
93 // have separate register stacks (Itanium).
94 static bool register_stack_overflow() { return false; }
95 static void enable_register_stack_guard() {}
96 static void disable_register_stack_guard() {}
97
98 #endif // OS_CPU_LINUX_SPARC_VM_THREAD_LINUX_SPARC_HPP
|