Mercurial > hg > truffle
annotate test/compiler/debug/VerifyAdapterSharing.java @ 14270:9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
Summary: Fix the sizing of loadUS2L_immI16 and loadI2L_immI
Reviewed-by: kvn, azeemj
author | iveresov |
---|---|
date | Fri, 17 Jan 2014 18:09:08 -0800 |
parents | d1af589627d4 |
children |
rev | line source |
---|---|
14200
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
1 /* |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
4 * |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
5 * This code is free software; you can redistribute it and/or modify it |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
6 * under the terms of the GNU General Public License version 2 only, as |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
7 * published by the Free Software Foundation. |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
8 * |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
12 * version 2 for more details (a copy is included in the LICENSE file that |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
13 * accompanied this code). |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
14 * |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
15 * You should have received a copy of the GNU General Public License version |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
16 * 2 along with this work; if not, write to the Free Software Foundation, |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
18 * |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
21 * questions. |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
22 */ |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
23 |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
24 /* |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
25 * @test |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
26 * @bug 8030783 |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
27 * @summary Regression test for 8026478 |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
28 * @library /testlibrary |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
29 * |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
30 */ |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
31 import com.oracle.java.testlibrary.*; |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
32 |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
33 public class VerifyAdapterSharing { |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
34 public static void main(String[] args) throws Exception { |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
35 ProcessBuilder pb; |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
36 OutputAnalyzer out; |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
37 |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
38 pb = ProcessTools.createJavaProcessBuilder("-Xcomp", "-XX:+IgnoreUnrecognizedVMOptions", |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
39 "-XX:+VerifyAdapterSharing", "-version"); |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
40 out = new OutputAnalyzer(pb.start()); |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
41 out.shouldHaveExitValue(0); |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
42 } |
d1af589627d4
8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff
changeset
|
43 } |