Mercurial > hg > graal-jvmci-8
annotate test/runtime/handlerInTry/HandlerInTry.jasm @ 22893:695017a614d5
8075118: JVM stuck in infinite loop during verification
Summary: keep a list of handlers to prevent the same handler from being scanned repeatedly.
Reviewed-by: dlong, dholmes
author | hseigel |
---|---|
date | Thu, 19 Mar 2015 08:55:50 -0400 |
parents | |
children |
rev | line source |
---|---|
22893
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
1 /* |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
4 * |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
5 * This code is free software; you can redistribute it and/or modify it |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
6 * under the terms of the GNU General Public License version 2 only, as |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
7 * published by the Free Software Foundation. |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
8 * |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
12 * version 2 for more details (a copy is included in the LICENSE file that |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
13 * accompanied this code). |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
14 * |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
15 * You should have received a copy of the GNU General Public License version |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
16 * 2 along with this work; if not, write to the Free Software Foundation, |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
18 * |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
21 * questions. |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
22 */ |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
23 |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
24 /* |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
25 * HandlerInTry contains a try block in a ctor whose handler is inside |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
26 * the same try block. The try block starts at line 74 (try t2;), ends at |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
27 * line 106 (endtry t2;), but its handler starts at line 101 (catch t2 #0;). |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
28 */ |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
29 super public class HandlerInTry |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
30 version 51:0 |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
31 { |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
32 |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
33 public static final synthetic Field ___transactionFactory_2002349702336125:"Ljava/lang/Object;"; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
34 |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
35 public Method "<init>":"(Ljava/lang/Object;)V" |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
36 stack 5 locals 5 |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
37 { |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
38 invokestatic Method ThreadLocalTransaction.getThreadLocalTransaction:"()Ljava/lang/Object;"; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
39 checkcast class java/lang/Object; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
40 astore_2; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
41 aload_2; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
42 invokestatic Method TransactionLogicDonor.isActiveTransaction:"(Ljava/lang/Object;)Z"; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
43 ifeq L21; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
44 aload_0; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
45 aload_1; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
46 aload_2; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
47 invokespecial Method "<init>":"(Ljava/lang/Object;Ljava/lang/Object;)V"; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
48 return; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
49 L21: stack_frame_type append; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
50 locals_map class java/lang/Object; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
51 aload_2; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
52 getstatic Field ___transactionFactory_2002349702336125:"Ljava/lang/Object;"; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
53 invokestatic Method TransactionLogicDonor.createTransaction:"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;"; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
54 astore_2; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
55 aload_2; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
56 iconst_1; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
57 pop; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
58 aload_2; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
59 invokestatic Method ThreadLocalTransaction.setThreadLocalTransaction:"(Ljava/lang/Object;)V"; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
60 try t0, t1; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
61 aload_0; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
62 aload_1; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
63 aload_2; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
64 invokespecial Method "<init>":"(Ljava/lang/Object;Ljava/lang/Object;)V"; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
65 aload_2; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
66 pop; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
67 aconst_null; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
68 astore_2; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
69 endtry t0, t1; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
70 invokestatic Method ThreadLocalTransaction.clearThreadLocalTransaction:"()V"; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
71 pop; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
72 goto L107; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
73 catch t0 java/lang/Throwable; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
74 try t2; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
75 stack_frame_type full; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
76 locals_map bogus, class java/lang/Object, class java/lang/Object; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
77 stack_map class java/lang/Throwable; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
78 astore_3; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
79 aload_2; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
80 pop; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
81 aload_3; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
82 instanceof class ControlFlowError; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
83 ifeq L82; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
84 new class java/lang/NullPointerException; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
85 dup; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
86 invokespecial Method java/lang/NullPointerException."<init>":"()V"; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
87 athrow; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
88 L82: stack_frame_type append; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
89 locals_map class java/lang/Throwable; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
90 aload_3; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
91 instanceof class java/lang/Error; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
92 ifeq L94; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
93 aload_3; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
94 checkcast class java/lang/Error; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
95 athrow; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
96 L94: stack_frame_type same; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
97 aload_3; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
98 checkcast class java/lang/Exception; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
99 athrow; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
100 catch t1 #0; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
101 catch t2 #0; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
102 stack_frame_type full; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
103 locals_map bogus, class java/lang/Object, class java/lang/Object; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
104 stack_map class java/lang/Throwable; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
105 astore 4; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
106 endtry t2; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
107 invokestatic Method ThreadLocalTransaction.clearThreadLocalTransaction:"()V"; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
108 aload 4; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
109 athrow; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
110 L107: stack_frame_type full; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
111 locals_map class HandlerInTry, class java/lang/Object, null; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
112 return; |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
113 } |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
114 |
695017a614d5
8075118: JVM stuck in infinite loop during verification
hseigel
parents:
diff
changeset
|
115 } // end Class HandlerInTry |