jdk/test/tools/launcher/TooSmallStackSize.java
changeset 46850 970a24772fe4
parent 41112 15f038151608
equal deleted inserted replaced
46849:563fba072835 46850:970a24772fe4
     1 /*
     1 /*
     2  * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   153          * for 6762191 is not yet in place.
   153          * for 6762191 is not yet in place.
   154          */
   154          */
   155         checkStack("16k");
   155         checkStack("16k");
   156 
   156 
   157         /*
   157         /*
   158          * Try with a 32k stack size, which is the size that the launcher will
   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
   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.
   160          * result as setting to 16k if the fix for 6762191 is in place.
   161          */
   161          */
   162         String min_stack_allowed = checkStack("32k");
   162         String min_stack_allowed = checkStack("64k");
   163 
   163 
   164         /*
   164         /*
   165          * Try again with a the minimum stack size that was given in the error message
   165          * Try again with a the minimum stack size that was given in the error message
   166          */
   166          */
   167         checkMinStackAllowed(min_stack_allowed);
   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");
   168     }
   174     }
   169 }
   175 }