Mercurial > hg > graal-compiler
annotate test/runtime/contended/HasNonStatic.java @ 14182:21db9a1d43ef
8021774: [TESTBUG] Tests failed because of a warning in its output
Summary: Remove check for warning
Reviewed-by: zgu, mseledtsov
Contributed-by: george.triantafillou@oracle.com
author | hseigel |
---|---|
date | Mon, 23 Dec 2013 10:13:42 -0500 |
parents | 3970971c91e0 |
children |
rev | line source |
---|---|
10348
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
1 /* |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
4 * |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
5 * This code is free software; you can redistribute it and/or modify it |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
6 * under the terms of the GNU General Public License version 2 only, as |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
7 * published by the Free Software Foundation. |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
8 * |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
12 * version 2 for more details (a copy is included in the LICENSE file that |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
13 * accompanied this code). |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
14 * |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
15 * You should have received a copy of the GNU General Public License version |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
16 * 2 along with this work; if not, write to the Free Software Foundation, |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
18 * |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
21 * questions. |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
22 */ |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
23 |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
24 import java.io.BufferedReader; |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
25 import java.io.InputStreamReader; |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
26 import java.lang.Class; |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
27 import java.lang.String; |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
28 import java.lang.System; |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
29 import java.lang.management.ManagementFactory; |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
30 import java.lang.management.RuntimeMXBean; |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
31 import java.util.ArrayList; |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
32 import java.util.List; |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
33 import java.util.concurrent.CyclicBarrier; |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
34 import java.util.regex.Matcher; |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
35 import java.util.regex.Pattern; |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
36 import java.lang.reflect.Field; |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
37 import java.lang.reflect.Modifier; |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
38 import sun.misc.Unsafe; |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
39 import sun.misc.Contended; |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
40 |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
41 /* |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
42 * @test |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
43 * @bug 8015270 |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
44 * @summary \@Contended: fix multiple issues in the layout code |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
45 * |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
46 * @run main/othervm -XX:-RestrictContended HasNonStatic |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
47 */ |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
48 public class HasNonStatic { |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
49 |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
50 public static void main(String[] args) throws Exception { |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
51 R1 r1 = new R1(); |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
52 R2 r2 = new R2(); |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
53 R3 r3 = new R3(); |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
54 R4 r4 = new R4(); |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
55 } |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
56 |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
57 public static class R1 { |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
58 @Contended |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
59 Object o; |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
60 } |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
61 |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
62 @Contended |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
63 public static class R2 { |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
64 Object o; |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
65 } |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
66 |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
67 @Contended |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
68 public static class R3 { |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
69 } |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
70 |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
71 public static class R4 extends R3 { |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
72 } |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
73 |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
74 } |
3970971c91e0
8015270: @Contended: fix multiple issues in the layout code
shade
parents:
diff
changeset
|
75 |