# HG changeset patch
# User fparain
# Date 1453210114 28800
# Node ID 51293eef580ce887fac6770606ff0e17a01a14c6
# Parent  9fdbfe36e9cb368df013e02622e58a410729cf17
8146751: jdk/test/tools/launcher/TooSmallStackSize.java failed on Mac OS
Reviewed-by: dholmes, gtriantafill

diff -r 9fdbfe36e9cb -r 51293eef580c hotspot/src/os/bsd/vm/os_bsd.cpp
--- 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 &&
diff -r 9fdbfe36e9cb -r 51293eef580c hotspot/src/os/solaris/vm/os_solaris.cpp
--- 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 &&