735 // pthread on Ubuntu is always in floating stack mode 736 bool os::Linux::supports_variable_stack_size() { return true; } 737 738 // return default stack size for thr_type 739 size_t os::Linux::default_stack_size(os::ThreadType thr_type) { 740 // default stack size (compiler thread needs larger stack) 741 size_t s = (thr_type == os::compiler_thread ? 4 * M : 1 * M); 742 return s; 743 } 744 745 size_t os::Linux::default_guard_size(os::ThreadType thr_type) { 746 // Creating guard page is very expensive. Java thread has HotSpot 747 // guard page, only enable glibc guard page for non-Java threads. 748 return (thr_type == java_thread ? 0 : page_size()); 749 } 750 751 #ifndef PRODUCT 752 void os::verify_stack_alignment() { 753 } 754 #endif | 735 // pthread on Ubuntu is always in floating stack mode 736 bool os::Linux::supports_variable_stack_size() { return true; } 737 738 // return default stack size for thr_type 739 size_t os::Linux::default_stack_size(os::ThreadType thr_type) { 740 // default stack size (compiler thread needs larger stack) 741 size_t s = (thr_type == os::compiler_thread ? 4 * M : 1 * M); 742 return s; 743 } 744 745 size_t os::Linux::default_guard_size(os::ThreadType thr_type) { 746 // Creating guard page is very expensive. Java thread has HotSpot 747 // guard page, only enable glibc guard page for non-Java threads. 748 return (thr_type == java_thread ? 0 : page_size()); 749 } 750 751 #ifndef PRODUCT 752 void os::verify_stack_alignment() { 753 } 754 #endif 755 756 int os::extra_bang_size_in_bytes() { 757 // SPARC does not require the additional stack bang. 758 return 0; 759 } |