8146751: jdk/test/tools/launcher/TooSmallStackSize.java failed on Mac OS
Reviewed-by: dholmes, gtriantafill
--- a/hotspot/src/os/bsd/vm/os_bsd.cpp Tue Jan 19 11:48:35 2016 +0100
+++ b/hotspot/src/os/bsd/vm/os_bsd.cpp Tue Jan 19 05:28:34 2016 -0800
@@ -3481,7 +3481,7 @@
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 &&
--- a/hotspot/src/os/solaris/vm/os_solaris.cpp Tue Jan 19 11:48:35 2016 +0100
+++ b/hotspot/src/os/solaris/vm/os_solaris.cpp Tue Jan 19 05:28:34 2016 -0800
@@ -4415,7 +4415,7 @@
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 &&