changeset 27340:5660ec824db3

8146751: jdk/test/tools/launcher/TooSmallStackSize.java failed on Mac OS Reviewed-by: dholmes, gtriantafill
author fparain
date Tue, 19 Jan 2016 05:28:34 -0800
parents ca92396edf68
children 8fcd5cba7938
files src/os/bsd/vm/os_bsd.cpp src/os/solaris/vm/os_solaris.cpp
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/os/bsd/vm/os_bsd.cpp	Tue Jan 19 11:48:35 2016 +0100
+++ b/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/src/os/solaris/vm/os_solaris.cpp	Tue Jan 19 11:48:35 2016 +0100
+++ b/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 &&