28 * @summary The vm crashes when GC happens during throwing a StackOverflow exception |
28 * @summary The vm crashes when GC happens during throwing a StackOverflow exception |
29 * |
29 * |
30 * @run main/othervm -Xcomp -Xbatch StackOverflow |
30 * @run main/othervm -Xcomp -Xbatch StackOverflow |
31 */ |
31 */ |
32 |
32 |
33 class StackOverflow { |
33 public class StackOverflow { |
34 static String stackOverflow_largeFrame_liveOopForGC; |
34 static String stackOverflow_largeFrame_liveOopForGC; |
35 |
35 |
36 public static int stackOverflow_largeFrame(int call_count, String liveOopForGC) { |
36 public static int stackOverflow_largeFrame(int call_count, String liveOopForGC) { |
37 try { |
37 try { |
38 int return_count = stackOverflow_largeFrame(++call_count, liveOopForGC); |
38 int return_count = stackOverflow_largeFrame(++call_count, liveOopForGC); |