8146751: jdk/test/tools/launcher/TooSmallStackSize.java failed on Mac OS

Reviewed-by: dholmes, gtriantafill
This commit is contained in:
Frederic Parain 2016-01-19 05:28:34 -08:00
parent 6232df1012
commit ae7f8632ce
2 changed files with 2 additions and 2 deletions

View file

@ -3481,7 +3481,7 @@ jint os::init_2(void) {
os::Bsd::min_stack_allowed = MAX2(os::Bsd::min_stack_allowed,
JavaThread::stack_guard_zone_size() +
JavaThread::stack_shadow_zone_size() +
2*BytesPerWord COMPILER2_PRESENT(+1) * Bsd::page_size());
(2*BytesPerWord COMPILER2_PRESENT(+1)) * Bsd::page_size());
size_t threadStackSizeInBytes = ThreadStackSize * K;
if (threadStackSizeInBytes != 0 &&

View file

@ -4415,7 +4415,7 @@ jint os::init_2(void) {
os::Solaris::min_stack_allowed = MAX2(os::Solaris::min_stack_allowed,
JavaThread::stack_guard_zone_size() +
JavaThread::stack_shadow_zone_size() +
2*BytesPerWord COMPILER2_PRESENT(+1) * page_size);
(2*BytesPerWord COMPILER2_PRESENT(+1)) * page_size);
size_t threadStackSizeInBytes = ThreadStackSize * K;
if (threadStackSizeInBytes != 0 &&