31 * VM testbase readme:
32 * DESCRIPTION
33 * This test provokes multiple stack overflows by invocations via
34 * reflection -- repeatedly multiple times, and in multiple threads.
35 * Recursive method is invoked for the given fixed depth of recursion
36 * (though, for a large depth). The test measures a number of recursive
37 * invocations until stack overflow, and then tries to reproduce similar
38 * stack overflows 10 times in each of 10 threads -- each time by trying
39 * to invoke the same recursive method for the given fixed depth
40 * of invocations (which is 10 times that crucial depth just measured).
41 * The test is deemed passed, if VM have not crashed, and
42 * if exception other than due to stack overflow was not
43 * thrown.
44 * COMMENTS
45 * This test crashes HS versions 2.0, 1.3, and 1.4 on both
46 * Solaris and Win32 platforms.
47 * See the bug:
48 * 4366625 (P4/S4) multiple stack overflow causes HS crash
49 *
50 * @ignore 8139875
51 * @run main/othervm nsk.stress.stack.stack018 -eager
52 */
53
54 package nsk.stress.stack;
55
56
57 import nsk.share.Harakiri;
58
59 import java.io.PrintStream;
60 import java.lang.reflect.InvocationTargetException;
61 import java.lang.reflect.Method;
62
63 public class stack018 extends Thread {
64 private final static int THREADS = 10;
65 private final static int CYCLES = 10;
66 private final static int STEP = 100;
67 private final static int RESERVE = 100;
68
69 public static void main(String[] args) {
70 int exitCode = run(args, System.out);
|
31 * VM testbase readme:
32 * DESCRIPTION
33 * This test provokes multiple stack overflows by invocations via
34 * reflection -- repeatedly multiple times, and in multiple threads.
35 * Recursive method is invoked for the given fixed depth of recursion
36 * (though, for a large depth). The test measures a number of recursive
37 * invocations until stack overflow, and then tries to reproduce similar
38 * stack overflows 10 times in each of 10 threads -- each time by trying
39 * to invoke the same recursive method for the given fixed depth
40 * of invocations (which is 10 times that crucial depth just measured).
41 * The test is deemed passed, if VM have not crashed, and
42 * if exception other than due to stack overflow was not
43 * thrown.
44 * COMMENTS
45 * This test crashes HS versions 2.0, 1.3, and 1.4 on both
46 * Solaris and Win32 platforms.
47 * See the bug:
48 * 4366625 (P4/S4) multiple stack overflow causes HS crash
49 *
50 * @ignore 8139875
51 * @requires vm.opt.DeoptimizeALot == null | vm.opt.DeoptimizeALot == false
52 * @run main/othervm nsk.stress.stack.stack018 -eager
53 */
54
55 package nsk.stress.stack;
56
57
58 import nsk.share.Harakiri;
59
60 import java.io.PrintStream;
61 import java.lang.reflect.InvocationTargetException;
62 import java.lang.reflect.Method;
63
64 public class stack018 extends Thread {
65 private final static int THREADS = 10;
66 private final static int CYCLES = 10;
67 private final static int STEP = 100;
68 private final static int RESERVE = 100;
69
70 public static void main(String[] args) {
71 int exitCode = run(args, System.out);
|