79 // invalid frame.
80 frame dummy = frame();
81 dummy.set_sp((intptr_t *) current_stack_pointer());
82 return dummy;
83 }
84
85 char* os::non_memory_address_word() {
86 // Must never look like an address returned by reserve_memory,
87 // even in its subfields (as defined by the CPU immediate fields,
88 // if the CPU splits constants across multiple instructions).
89 #ifdef SPARC
90 // On SPARC, 0 != %hi(any real address), because there is no
91 // allocation in the first 1Kb of the virtual address space.
92 return (char *) 0;
93 #else
94 // This is the value for x86; works pretty well for PPC too.
95 return (char *) -1;
96 #endif // SPARC
97 }
98
99 void os::initialize_thread(Thread * thr){
100 // Nothing to do.
101 }
102
103 address os::Linux::ucontext_get_pc(const ucontext_t* uc) {
104 ShouldNotCallThis();
105 return NULL; // silence compile warnings
106 }
107
108 void os::Linux::ucontext_set_pc(ucontext_t * uc, address pc) {
109 ShouldNotCallThis();
110 }
111
112 ExtendedPC os::fetch_frame_from_context(const void* ucVoid,
113 intptr_t** ret_sp,
114 intptr_t** ret_fp) {
115 ShouldNotCallThis();
116 return NULL; // silence compile warnings
117 }
118
119 frame os::fetch_frame_from_context(const void* ucVoid) {
120 ShouldNotCallThis();
121 return frame(NULL, NULL); // silence compile warnings
122 }
|
79 // invalid frame.
80 frame dummy = frame();
81 dummy.set_sp((intptr_t *) current_stack_pointer());
82 return dummy;
83 }
84
85 char* os::non_memory_address_word() {
86 // Must never look like an address returned by reserve_memory,
87 // even in its subfields (as defined by the CPU immediate fields,
88 // if the CPU splits constants across multiple instructions).
89 #ifdef SPARC
90 // On SPARC, 0 != %hi(any real address), because there is no
91 // allocation in the first 1Kb of the virtual address space.
92 return (char *) 0;
93 #else
94 // This is the value for x86; works pretty well for PPC too.
95 return (char *) -1;
96 #endif // SPARC
97 }
98
99 address os::Linux::ucontext_get_pc(const ucontext_t* uc) {
100 ShouldNotCallThis();
101 return NULL; // silence compile warnings
102 }
103
104 void os::Linux::ucontext_set_pc(ucontext_t * uc, address pc) {
105 ShouldNotCallThis();
106 }
107
108 ExtendedPC os::fetch_frame_from_context(const void* ucVoid,
109 intptr_t** ret_sp,
110 intptr_t** ret_fp) {
111 ShouldNotCallThis();
112 return NULL; // silence compile warnings
113 }
114
115 frame os::fetch_frame_from_context(const void* ucVoid) {
116 ShouldNotCallThis();
117 return frame(NULL, NULL); // silence compile warnings
118 }
|