equal
deleted
inserted
replaced
531 } |
531 } |
532 |
532 |
533 //////////////////////////////////////////////////////////////////////////////// |
533 //////////////////////////////////////////////////////////////////////////////// |
534 // thread stack |
534 // thread stack |
535 |
535 |
536 size_t os::Linux::min_stack_allowed = 128*K; |
536 size_t os::Posix::_compiler_thread_min_stack_allowed = 128 * K; |
|
537 size_t os::Posix::_java_thread_min_stack_allowed = 128 * K; |
|
538 size_t os::Posix::_vm_internal_thread_min_stack_allowed = 128 * K; |
537 |
539 |
538 // return default stack size for thr_type |
540 // return default stack size for thr_type |
539 size_t os::Linux::default_stack_size(os::ThreadType thr_type) { |
541 size_t os::Posix::default_stack_size(os::ThreadType thr_type) { |
540 // default stack size (compiler thread needs larger stack) |
542 // default stack size (compiler thread needs larger stack) |
541 // Notice that the setting for compiler threads here have no impact |
|
542 // because of the strange 'fallback logic' in os::create_thread(). |
|
543 // Better set CompilerThreadStackSize in globals_<os_cpu>.hpp if you want to |
|
544 // specify a different stack size for compiler threads! |
|
545 size_t s = (thr_type == os::compiler_thread ? 4 * M : 1024 * K); |
543 size_t s = (thr_type == os::compiler_thread ? 4 * M : 1024 * K); |
546 return s; |
544 return s; |
547 } |
545 } |
548 |
546 |
549 size_t os::Linux::default_guard_size(os::ThreadType thr_type) { |
547 size_t os::Linux::default_guard_size(os::ThreadType thr_type) { |