84 static pid_t gettid(); |
84 static pid_t gettid(); |
85 |
85 |
86 static int page_size(void) { return _page_size; } |
86 static int page_size(void) { return _page_size; } |
87 static void set_page_size(int val) { _page_size = val; } |
87 static void set_page_size(int val) { _page_size = val; } |
88 |
88 |
89 static address ucontext_get_pc(ucontext_t* uc); |
89 static address ucontext_get_pc(const ucontext_t* uc); |
90 static void ucontext_set_pc(ucontext_t* uc, address pc); |
90 static void ucontext_set_pc(ucontext_t* uc, address pc); |
91 static intptr_t* ucontext_get_sp(ucontext_t* uc); |
91 static intptr_t* ucontext_get_sp(const ucontext_t* uc); |
92 static intptr_t* ucontext_get_fp(ucontext_t* uc); |
92 static intptr_t* ucontext_get_fp(const ucontext_t* uc); |
93 |
93 |
94 // For Analyzer Forte AsyncGetCallTrace profiling support: |
94 // For Analyzer Forte AsyncGetCallTrace profiling support: |
95 // |
95 // |
96 // This interface should be declared in os_bsd_i486.hpp, but |
96 // This interface should be declared in os_bsd_i486.hpp, but |
97 // that file provides extensions to the os class and not the |
97 // that file provides extensions to the os class and not the |
98 // Bsd class. |
98 // Bsd class. |
99 static ExtendedPC fetch_frame_from_ucontext(Thread* thread, ucontext_t* uc, |
99 static ExtendedPC fetch_frame_from_ucontext(Thread* thread, const ucontext_t* uc, |
100 intptr_t** ret_sp, intptr_t** ret_fp); |
100 intptr_t** ret_sp, intptr_t** ret_fp); |
101 |
101 |
102 static bool get_frame_at_stack_banging_point(JavaThread* thread, ucontext_t* uc, frame* fr); |
102 static bool get_frame_at_stack_banging_point(JavaThread* thread, ucontext_t* uc, frame* fr); |
103 |
103 |
104 // This boolean allows users to forward their own non-matching signals |
104 // This boolean allows users to forward their own non-matching signals |