< prev index next >

test/jdk/tools/launcher/TooSmallStackSize.java

Print this page
rev 54472 : 8222334: java -Xss0 triggers StackOverflowError
Summary: Launcher to use the ThreadStackSize decided by hotpot or system if input is 0
Reviewed-by: dholmes


 154          */
 155         checkStack("16k");
 156 
 157         /*
 158          * Try with a 64k stack size, which is the size that the launcher will
 159          * set to if you try setting to anything smaller. This should produce the same
 160          * result as setting to 16k if the fix for 6762191 is in place.
 161          */
 162         String min_stack_allowed = checkStack("64k");
 163 
 164         /*
 165          * Try again with a the minimum stack size that was given in the error message
 166          */
 167         checkMinStackAllowed(min_stack_allowed);
 168 
 169         /*
 170          * Try again with a size that is not OS page aligned. This is to help test that
 171          * asserts added for 8176768 are not triggered.
 172          */
 173         checkMinStackAllowed("513k");






 174     }
 175 }


 154          */
 155         checkStack("16k");
 156 
 157         /*
 158          * Try with a 64k stack size, which is the size that the launcher will
 159          * set to if you try setting to anything smaller. This should produce the same
 160          * result as setting to 16k if the fix for 6762191 is in place.
 161          */
 162         String min_stack_allowed = checkStack("64k");
 163 
 164         /*
 165          * Try again with a the minimum stack size that was given in the error message
 166          */
 167         checkMinStackAllowed(min_stack_allowed);
 168 
 169         /*
 170          * Try again with a size that is not OS page aligned. This is to help test that
 171          * asserts added for 8176768 are not triggered.
 172          */
 173         checkMinStackAllowed("513k");
 174 
 175         /*
 176          * Try with 0k which indicates that the default thread stack size either from JVM or system
 177          * will be used, this should always succeed. It can verify the issue fixed in 8222334.
 178          */
 179         checkMinStackAllowed("0k");
 180     }
 181 }
< prev index next >