jdk/test/tools/launcher/TooSmallStackSize.java
author lana
Thu, 02 Jun 2016 21:14:26 +0000
changeset 38627 6dea0d12ee02
parent 37540 e92d95400f31
child 41112 15f038151608
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
28102
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
     1
/*
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
     2
 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
     4
 *
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
     7
 * published by the Free Software Foundation.
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
     8
 *
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    13
 * accompanied this code).
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    14
 *
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    18
 *
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    21
 * questions.
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    22
 */
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    23
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    24
/*
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    25
 * @test
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    26
 * @bug 6762191
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    27
 * @summary Setting stack size to 16K causes segmentation fault
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    28
 * @compile TooSmallStackSize.java
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    29
 * @run main TooSmallStackSize
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    30
 */
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    31
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    32
/*
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    33
 * The primary purpose of this test is to make sure we can run with a 16k stack
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    34
 * size without crashing. Also this test will determine the minimum allowed
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    35
 * stack size for the platform (as provided by the JVM error message when a very
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    36
 * small stack is used), and then verify that the JVM can be launched with that stack
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    37
 * size without a crash or any error messages.
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    38
 */
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    39
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    40
public class TooSmallStackSize extends TestHelper {
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    41
    /* for debugging. Normally false. */
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    42
    static final boolean verbose = false;
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    43
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    44
    static void printTestOutput(TestResult tr) {
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    45
        System.out.println("*** exitValue = " + tr.exitValue);
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    46
        for (String x : tr.testOutput) {
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    47
            System.out.println(x);
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    48
        }
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    49
    }
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    50
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    51
    /*
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    52
     * Returns the minimum stack size this platform will allowed based on the
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    53
     * contents of the error message the JVM outputs when too small of a
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    54
     * -Xss size was used.
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    55
     *
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    56
     * The TestResult argument must contain the result of having already run
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    57
     * the JVM with too small of a stack size.
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    58
     */
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    59
    static String getMinStackAllowed(TestResult tr) {
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    60
        /*
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    61
         * The JVM output will contain in one of the lines:
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    62
         *   "The stack size specified is too small, Specify at least 100k"
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    63
         * Although the actual size will vary. We need to extract this size
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    64
         * string from the output and return it.
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    65
         */
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    66
        String matchStr = "Specify at least ";
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    67
        for (String x : tr.testOutput) {
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    68
            int match_idx = x.indexOf(matchStr);
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    69
            if (match_idx >= 0) {
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    70
                int size_start_idx = match_idx + matchStr.length();
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    71
                int k_start_idx = x.indexOf("k", size_start_idx);
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    72
                return x.substring(size_start_idx, k_start_idx + 1); // include the "k"
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    73
            }
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    74
        }
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    75
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    76
        System.out.println("FAILED: Could not get the stack size from the output");
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    77
        throw new RuntimeException("test fails");
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    78
    }
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    79
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    80
    /*
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    81
     * Run the JVM with the specified stack size.
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    82
     *
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    83
     * Returns the minimum allowed stack size gleaned from the error message,
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    84
     * if there is an error message. Otherwise returns the stack size passed in.
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    85
     */
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    86
    static String checkStack(String stackSize) {
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    87
        String min_stack_allowed;
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    88
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    89
        if (verbose)
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    90
            System.out.println("*** Testing " + stackSize);
37540
e92d95400f31 8154470: defines.h confused about PROGNAME and JAVA_ARGS
martin
parents: 35624
diff changeset
    91
        TestResult tr = doExec(javaCmd, "-Xss" + stackSize, "-version");
28102
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    92
        if (verbose)
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    93
            printTestOutput(tr);
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    94
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    95
        if (tr.isOK()) {
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    96
            System.out.println("PASSED: got no error message with stack size of " + stackSize);
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    97
            min_stack_allowed = stackSize;
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    98
        } else {
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
    99
            if (tr.contains("The stack size specified is too small")) {
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   100
                System.out.println("PASSED: got expected error message with stack size of " + stackSize);
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   101
                min_stack_allowed = getMinStackAllowed(tr);
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   102
            } else {
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   103
                // Likely a crash
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   104
                System.out.println("FAILED: Did not get expected error message with stack size of " + stackSize);
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   105
                throw new RuntimeException("test fails");
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   106
            }
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   107
        }
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   108
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   109
        return min_stack_allowed;
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   110
    }
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   111
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   112
    /*
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   113
     * Run the JVM with the minimum allowed stack size. This should always succeed.
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   114
     */
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   115
    static void checkMinStackAllowed(String stackSize) {
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   116
        if (verbose)
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   117
            System.out.println("*** Testing " + stackSize);
37540
e92d95400f31 8154470: defines.h confused about PROGNAME and JAVA_ARGS
martin
parents: 35624
diff changeset
   118
        TestResult tr = doExec(javaCmd, "-Xss" + stackSize, "-version");
28102
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   119
        if (verbose)
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   120
            printTestOutput(tr);
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   121
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   122
        if (tr.isOK()) {
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   123
            System.out.println("PASSED: VM launched with minimum allowed stack size of " + stackSize);
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   124
        } else {
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   125
            // Likely a crash
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   126
            System.out.println("FAILED: VM failed to launch with minimum allowed stack size of " + stackSize);
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   127
            throw new RuntimeException("test fails");
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   128
        }
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   129
    }
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   130
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   131
    public static void main(String... args) {
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   132
        /*
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   133
         * The result of a 16k stack size should be a quick exit with a complaint
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   134
         * that the stack size is too small. However, for some win32 builds, the
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   135
         * stack is always at least 64k, and this also sometimes is the minimum
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   136
         * allowed size, so we won't see an error in this case.
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   137
         *
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   138
         * This test case will also produce a crash on some platforms if the fix
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   139
         * for 6762191 is not yet in place.
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   140
         */
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   141
        checkStack("16k");
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   142
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   143
        /*
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   144
         * Try with a 32k stack size, which is the size that the launcher will
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   145
         * set to if you try setting to anything smaller. This should produce the same
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   146
         * result as setting to 16k if the fix for 6762191 is in place.
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   147
         */
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   148
        String min_stack_allowed = checkStack("32k");
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   149
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   150
        /*
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   151
         * Try again with a the minimum stack size that was given in the error message
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   152
         */
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   153
        checkMinStackAllowed(min_stack_allowed);
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   154
    }
0efebd8c99e2 6762191: Setting stack size to 16K causes segmentation fault
cjplummer
parents:
diff changeset
   155
}