24 /*
25 * @test
26 * @key stress
27 *
28 * @summary converted from VM testbase nsk/stress/stack/stack019.
29 * VM testbase keywords: [stress, diehard, stack, nonconcurrent, exclude]
30 * VM testbase comments: 8139875
31 * VM testbase readme:
32 * DESCRIPTION
33 * The test invokes infinitely recursive method from within stack
34 * overflow handler -- repeatedly multiple times in a single thread.
35 * The test is deemed passed, if VM have not crashed, and if exception
36 * other than due to stack overflow was not thrown.
37 * COMMENTS
38 * This test crashes HS versions 2.0, 1.3, and 1.4 on both
39 * Solaris and Win32 platforms.
40 * See the bug:
41 * 4366625 (P4/S4) multiple stack overflow causes HS crash
42 *
43 * @ignore 8139875
44 * @run main/othervm nsk.stress.stack.stack019 -eager
45 */
46
47 package nsk.stress.stack;
48
49
50 import nsk.share.Harakiri;
51
52 import java.io.PrintStream;
53
54 public class stack019 {
55 private final static int CYCLES = 100;
56 private final static int PROBES = 100;
57
58 public static void main(String[] args) {
59 int exitCode = run(args, System.out);
60 System.exit(exitCode + 95);
61 }
62
63 public static int run(String args[], PrintStream out) {
|
24 /*
25 * @test
26 * @key stress
27 *
28 * @summary converted from VM testbase nsk/stress/stack/stack019.
29 * VM testbase keywords: [stress, diehard, stack, nonconcurrent, exclude]
30 * VM testbase comments: 8139875
31 * VM testbase readme:
32 * DESCRIPTION
33 * The test invokes infinitely recursive method from within stack
34 * overflow handler -- repeatedly multiple times in a single thread.
35 * The test is deemed passed, if VM have not crashed, and if exception
36 * other than due to stack overflow was not thrown.
37 * COMMENTS
38 * This test crashes HS versions 2.0, 1.3, and 1.4 on both
39 * Solaris and Win32 platforms.
40 * See the bug:
41 * 4366625 (P4/S4) multiple stack overflow causes HS crash
42 *
43 * @ignore 8139875
44 * @requires vm.opt.DeoptimizeALot == null | vm.opt.DeoptimizeALot == false
45 * @run main/othervm nsk.stress.stack.stack019 -eager
46 */
47
48 package nsk.stress.stack;
49
50
51 import nsk.share.Harakiri;
52
53 import java.io.PrintStream;
54
55 public class stack019 {
56 private final static int CYCLES = 100;
57 private final static int PROBES = 100;
58
59 public static void main(String[] args) {
60 int exitCode = run(args, System.out);
61 System.exit(exitCode + 95);
62 }
63
64 public static int run(String args[], PrintStream out) {
|