8146751: jdk/test/tools/launcher/TooSmallStackSize.java failed on Mac OS
authorfparain
Tue, 19 Jan 2016 05:28:34 -0800
changeset 35531 51293eef580c
parent 35530 9fdbfe36e9cb
child 35532 929dfc251a28
8146751: jdk/test/tools/launcher/TooSmallStackSize.java failed on Mac OS Reviewed-by: dholmes, gtriantafill
hotspot/src/os/bsd/vm/os_bsd.cpp
hotspot/src/os/solaris/vm/os_solaris.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 &&
--- 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 &&