Mercurial > hg > graal-compiler
annotate test/compiler/6859338/Test6859338.java @ 3095:d3d00c1ea071
IdealGraphVisualizer: Enhance text view so it can display arbitrary properties from the active graph's group. For diff graphs, it shows the textual difference between the property strings using the NetBeans Diff module.
author | Peter Hofer <peter.hofer@jku.at> |
---|---|
date | Wed, 29 Jun 2011 17:33:35 +0200 |
parents | c18cbe5936b8 |
children | da91efe96a93 |
rev | line source |
---|---|
848
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
1 /* |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
848
diff
changeset
|
2 * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. |
848
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
4 * |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
5 * This code is free software; you can redistribute it and/or modify it |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
6 * under the terms of the GNU General Public License version 2 only, as |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
7 * published by the Free Software Foundation. |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
8 * |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
12 * version 2 for more details (a copy is included in the LICENSE file that |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
13 * accompanied this code). |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
14 * |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
15 * You should have received a copy of the GNU General Public License version |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
16 * 2 along with this work; if not, write to the Free Software Foundation, |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
18 * |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
848
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
848
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
848
diff
changeset
|
21 * questions. |
848
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
22 * |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
23 */ |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
24 |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
25 /** |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
26 * @test |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
27 * @bug 6859338 |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
28 * @summary Assertion failure in sharedRuntime.cpp |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
29 * |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
30 * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-InlineObjectHash -Xbatch -XX:-ProfileInterpreter Test6859338 |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
31 */ |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
32 |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
33 public class Test6859338 { |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
34 static Object[] o = new Object[] { new Object(), null }; |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
35 public static void main(String[] args) { |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
36 int total = 0; |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
37 try { |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
38 // Exercise the implicit null check in the unverified entry point |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
39 for (int i = 0; i < 40000; i++) { |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
40 int limit = o.length; |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
41 if (i < 20000) limit = 1; |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
42 for (int j = 0; j < limit; j++) { |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
43 total += o[j].hashCode(); |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
44 } |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
45 } |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
46 |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
47 } catch (NullPointerException e) { |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
48 // this is expected. A true failure causes a crash |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
49 } |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
50 } |
fe95187e8882
6859338: amd64 native unverified entry point pushes values before implicit null check
never
parents:
diff
changeset
|
51 } |