Mercurial > hg > graal-compiler
annotate test/compiler/osr/TestOSRWithNonEmptyStack.java @ 21514:b426469fadb7
mx: better description for strict-compliance and fix typo
author | Gilles Duboscq <gilles.m.duboscq@oracle.com> |
---|---|
date | Wed, 06 May 2015 17:04:06 +0200 |
parents | dbb05f6d93c4 |
children |
rev | line source |
---|---|
20283
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
1 /* |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
4 * |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
5 * This code is free software; you can redistribute it and/or modify it |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
6 * under the terms of the GNU General Public License version 2 only, as |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
7 * published by the Free Software Foundation. |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
8 * |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
12 * version 2 for more details (a copy is included in the LICENSE file that |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
13 * accompanied this code). |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
14 * |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
15 * You should have received a copy of the GNU General Public License version |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
16 * 2 along with this work; if not, write to the Free Software Foundation, |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
18 * |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
21 * questions. |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
22 */ |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
23 |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
24 import java.lang.reflect.Constructor; |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
25 import java.lang.reflect.Method; |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
26 |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
27 import jdk.internal.org.objectweb.asm.ClassWriter; |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
28 import jdk.internal.org.objectweb.asm.Label; |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
29 import jdk.internal.org.objectweb.asm.MethodVisitor; |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
30 import static jdk.internal.org.objectweb.asm.Opcodes.*; |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
31 |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
32 /** |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
33 * @test |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
34 * @bug 8051344 |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
35 * @summary Force OSR compilation with non-empty stack at the OSR entry point. |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
36 * @compile -XDignore.symbol.file TestOSRWithNonEmptyStack.java |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
37 * @run main/othervm -XX:CompileOnly=TestCase.test TestOSRWithNonEmptyStack |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
38 */ |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
39 public class TestOSRWithNonEmptyStack extends ClassLoader { |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
40 private static final int CLASS_FILE_VERSION = 52; |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
41 private static final String CLASS_NAME = "TestCase"; |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
42 private static final String METHOD_NAME = "test"; |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
43 private static final int ITERATIONS = 1_000_000; |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
44 |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
45 private static byte[] generateTestClass() { |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
46 ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_FRAMES); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
47 |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
48 cw.visit(TestOSRWithNonEmptyStack.CLASS_FILE_VERSION, ACC_PUBLIC, |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
49 TestOSRWithNonEmptyStack.CLASS_NAME, null, "java/lang/Object", |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
50 null); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
51 |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
52 TestOSRWithNonEmptyStack.generateConstructor(cw); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
53 TestOSRWithNonEmptyStack.generateTestMethod(cw); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
54 |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
55 cw.visitEnd(); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
56 return cw.toByteArray(); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
57 } |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
58 |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
59 private static void generateConstructor(ClassWriter classWriter) { |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
60 MethodVisitor mv = classWriter.visitMethod(ACC_PUBLIC, "<init>", "()V", |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
61 null, null); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
62 |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
63 mv.visitCode(); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
64 |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
65 mv.visitVarInsn(ALOAD, 0); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
66 mv.visitMethodInsn(INVOKESPECIAL, "java/lang/Object", "<init>", "()V", |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
67 false); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
68 mv.visitInsn(RETURN); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
69 |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
70 mv.visitMaxs(0, 0); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
71 mv.visitEnd(); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
72 } |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
73 |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
74 private static void generateTestMethod(ClassWriter classWriter) { |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
75 MethodVisitor mv = classWriter.visitMethod(ACC_PUBLIC, |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
76 TestOSRWithNonEmptyStack.METHOD_NAME, "()V", null, null); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
77 Label osrEntryPoint = new Label(); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
78 |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
79 mv.visitCode(); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
80 // Push 'this' into stack before OSR entry point to bail out compilation |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
81 mv.visitVarInsn(ALOAD, 0); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
82 // Setup loop counter |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
83 mv.visitInsn(ICONST_0); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
84 mv.visitVarInsn(ISTORE, 1); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
85 // Begin loop |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
86 mv.visitLabel(osrEntryPoint); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
87 // Increment loop counter |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
88 mv.visitVarInsn(ILOAD, 1); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
89 mv.visitInsn(ICONST_1); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
90 mv.visitInsn(IADD); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
91 // Duplicate it for loop condition check |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
92 mv.visitInsn(DUP); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
93 mv.visitVarInsn(ISTORE, 1); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
94 // Check loop condition |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
95 mv.visitLdcInsn(TestOSRWithNonEmptyStack.ITERATIONS); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
96 mv.visitJumpInsn(IF_ICMPLT, osrEntryPoint); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
97 // Pop 'this'. |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
98 mv.visitInsn(POP); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
99 mv.visitInsn(RETURN); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
100 |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
101 mv.visitMaxs(0, 0); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
102 mv.visitEnd(); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
103 } |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
104 |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
105 private void run() { |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
106 byte[] bytecode = TestOSRWithNonEmptyStack.generateTestClass(); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
107 |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
108 try { |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
109 Class klass = defineClass(TestOSRWithNonEmptyStack.CLASS_NAME, |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
110 bytecode, 0, bytecode.length); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
111 |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
112 Constructor ctor = klass.getConstructor(); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
113 Method method = klass.getDeclaredMethod( |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
114 TestOSRWithNonEmptyStack.METHOD_NAME); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
115 |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
116 Object testCase = ctor.newInstance(); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
117 method.invoke(testCase); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
118 } catch (Exception e) { |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
119 throw new RuntimeException( |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
120 "Test bug: generated class should be valid.", e); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
121 } |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
122 } |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
123 |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
124 public static void main(String args[]) { |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
125 new TestOSRWithNonEmptyStack().run(); |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
126 } |
dbb05f6d93c4
8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
fzhinkin
parents:
diff
changeset
|
127 } |