mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8146751: jdk/test/tools/launcher/TooSmallStackSize.java failed on Mac OS
Reviewed-by: dholmes, gtriantafill
This commit is contained in:
parent
6232df1012
commit
ae7f8632ce
2 changed files with 2 additions and 2 deletions
|
@ -3481,7 +3481,7 @@ jint os::init_2(void) {
|
||||||
os::Bsd::min_stack_allowed = MAX2(os::Bsd::min_stack_allowed,
|
os::Bsd::min_stack_allowed = MAX2(os::Bsd::min_stack_allowed,
|
||||||
JavaThread::stack_guard_zone_size() +
|
JavaThread::stack_guard_zone_size() +
|
||||||
JavaThread::stack_shadow_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;
|
size_t threadStackSizeInBytes = ThreadStackSize * K;
|
||||||
if (threadStackSizeInBytes != 0 &&
|
if (threadStackSizeInBytes != 0 &&
|
||||||
|
|
|
@ -4415,7 +4415,7 @@ jint os::init_2(void) {
|
||||||
os::Solaris::min_stack_allowed = MAX2(os::Solaris::min_stack_allowed,
|
os::Solaris::min_stack_allowed = MAX2(os::Solaris::min_stack_allowed,
|
||||||
JavaThread::stack_guard_zone_size() +
|
JavaThread::stack_guard_zone_size() +
|
||||||
JavaThread::stack_shadow_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;
|
size_t threadStackSizeInBytes = ThreadStackSize * K;
|
||||||
if (threadStackSizeInBytes != 0 &&
|
if (threadStackSizeInBytes != 0 &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue