equal
deleted
inserted
replaced
154 return cur_sp > low_addr ? cur_sp - low_addr : 0; |
154 return cur_sp > low_addr ? cur_sp - low_addr : 0; |
155 } |
155 } |
156 |
156 |
157 inline bool JavaThread::stack_guards_enabled() { |
157 inline bool JavaThread::stack_guards_enabled() { |
158 #ifdef ASSERT |
158 #ifdef ASSERT |
159 if (os::uses_stack_guard_pages()) { |
159 if (os::uses_stack_guard_pages() && |
|
160 !(DisablePrimordialThreadGuardPages && os::is_primordial_thread())) { |
160 assert(_stack_guard_state != stack_guard_unused, "guard pages must be in use"); |
161 assert(_stack_guard_state != stack_guard_unused, "guard pages must be in use"); |
161 } |
162 } |
162 #endif |
163 #endif |
163 return _stack_guard_state == stack_guard_enabled; |
164 return _stack_guard_state == stack_guard_enabled; |
164 } |
165 } |