equal
deleted
inserted
replaced
280 } |
280 } |
281 |
281 |
282 /////////////////////////////////////////////////////////////////////////////// |
282 /////////////////////////////////////////////////////////////////////////////// |
283 // thread stack |
283 // thread stack |
284 |
284 |
285 size_t os::Bsd::min_stack_allowed = 64 * K; |
285 size_t os::Posix::_compiler_thread_min_stack_allowed = 64 * K; |
286 |
286 size_t os::Posix::_java_thread_min_stack_allowed = 64 * K; |
287 size_t os::Bsd::default_stack_size(os::ThreadType thr_type) { |
287 size_t os::Posix::_vm_internal_thread_min_stack_allowed = 64 * K; |
|
288 |
|
289 size_t os::Posix::default_stack_size(os::ThreadType thr_type) { |
288 #ifdef _LP64 |
290 #ifdef _LP64 |
289 size_t s = (thr_type == os::compiler_thread ? 4 * M : 1 * M); |
291 size_t s = (thr_type == os::compiler_thread ? 4 * M : 1 * M); |
290 #else |
292 #else |
291 size_t s = (thr_type == os::compiler_thread ? 2 * M : 512 * K); |
293 size_t s = (thr_type == os::compiler_thread ? 2 * M : 512 * K); |
292 #endif // _LP64 |
294 #endif // _LP64 |
293 return s; |
295 return s; |
294 } |
|
295 |
|
296 size_t os::Bsd::default_guard_size(os::ThreadType thr_type) { |
|
297 // Only enable glibc guard pages for non-Java threads |
|
298 // (Java threads have HotSpot guard pages) |
|
299 return (thr_type == java_thread ? 0 : page_size()); |
|
300 } |
296 } |
301 |
297 |
302 static void current_stack_region(address *bottom, size_t *size) { |
298 static void current_stack_region(address *bottom, size_t *size) { |
303 address stack_bottom; |
299 address stack_bottom; |
304 address stack_top; |
300 address stack_top; |