author | rraghavan |
Tue, 18 Dec 2018 19:13:54 +0530 | |
changeset 53063 | b04860fd2e2c |
permissions | -rw-r--r-- |
53063
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
1 |
/* |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
2 |
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
4 |
* |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
8 |
* |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
13 |
* accompanied this code). |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
14 |
* |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
18 |
* |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
21 |
* questions. |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
22 |
*/ |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
23 |
|
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
24 |
/* |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
25 |
* @test |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
26 |
* @bug 8211698 |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
27 |
* @summary Crash in C2 compiled code during execution of double array heavy processing code |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
28 |
* |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
29 |
* @run main/othervm -XX:CompileOnly=Test8211698.test Test8211698 |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
30 |
* |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
31 |
*/ |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
32 |
|
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
33 |
public class Test8211698 { |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
34 |
|
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
35 |
public static void main(String[] args) { |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
36 |
Test8211698 issue = new Test8211698(); |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
37 |
for (int i = 0; i < 10000; i++) { |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
38 |
issue.test(); |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
39 |
} |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
40 |
} |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
41 |
|
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
42 |
public void test() { |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
43 |
int[] iarr1 = new int[888]; |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
44 |
for (int i = 5; i > 0; i--) { |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
45 |
for (int j = 0; j <= i - 1; j++) { |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
46 |
int istep = 2 * j - i; |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
47 |
int iadj = 0; |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
48 |
if (istep < 0) { |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
49 |
iadj = iarr1[-istep]; |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
50 |
} else { |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
51 |
iadj = iarr1[istep]; |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
52 |
} |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
53 |
} |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
54 |
} |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
55 |
} |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
56 |
} |
b04860fd2e2c
8211698: Crash in C2 compiled code during execution of double array heavy processing code
rraghavan
parents:
diff
changeset
|
57 |