# HG changeset patch # User cjplummer # Date 1490640844 25200 # Node ID 1b8f8edb7775aef7033c3ca24c43c89b8d543b57 # Parent 5fdb409ba877d7655c9beb22e29bc8c93b79817f 8177015: STACK_SIZE_MINIMUM of 32k is not always enough for Mac OS X Summary: Bump up minimum to 64k. Reviewed-by: dholmes, dcubed diff -r 5fdb409ba877 -r 1b8f8edb7775 hotspot/test/runtime/Thread/TooSmallStackSize.java --- a/hotspot/test/runtime/Thread/TooSmallStackSize.java Mon Mar 27 19:05:54 2017 +0300 +++ b/hotspot/test/runtime/Thread/TooSmallStackSize.java Mon Mar 27 11:54:04 2017 -0700 @@ -170,11 +170,11 @@ checkStack("-XX:ThreadStackSize=", ThreadStackSizeString, "16"); /* - * Try with a 32k stack size, which is the size that the launcher will + * Try with a 64k stack size, which is the size that the launcher will * set to if you try setting to anything smaller. This should produce the same * result as setting to 16k if the fix for 6762191 is in place. */ - String min_stack_allowed = checkStack("-XX:ThreadStackSize=", ThreadStackSizeString, "32"); + String min_stack_allowed = checkStack("-XX:ThreadStackSize=", ThreadStackSizeString, "64"); /* * Try again with a the minimum stack size that was given in the error message @@ -190,7 +190,7 @@ * Now redo the same tests with the compiler thread stack size: */ checkStack("-XX:CompilerThreadStackSize=", CompilerThreadStackSizeString, "16"); - min_stack_allowed = checkStack("-XX:CompilerThreadStackSize=", CompilerThreadStackSizeString, "32"); + min_stack_allowed = checkStack("-XX:CompilerThreadStackSize=", CompilerThreadStackSizeString, "64"); checkMinStackAllowed("-XX:CompilerThreadStackSize=", CompilerThreadStackSizeString, min_stack_allowed); checkMinStackAllowed("-XX:CompilerThreadStackSize=", CompilerThreadStackSizeString, "513"); @@ -198,7 +198,7 @@ * Now redo the same tests with the VM thread stack size: */ checkStack("-XX:VMThreadStackSize=", VMThreadStackSizeString, "16"); - min_stack_allowed = checkStack("-XX:VMThreadStackSize=", VMThreadStackSizeString, "32"); + min_stack_allowed = checkStack("-XX:VMThreadStackSize=", VMThreadStackSizeString, "64"); checkMinStackAllowed("-XX:VMThreadStackSize=", VMThreadStackSizeString, min_stack_allowed); checkMinStackAllowed("-XX:VMThreadStackSize=", VMThreadStackSizeString, "513"); }