author | chegar |
Tue, 22 Mar 2016 15:26:07 +0000 | |
changeset 36694 | 182a5e7a519e |
parent 33062 | f6b082ab565e |
child 40059 | c2304140ed64 |
permissions | -rw-r--r-- |
32465
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
1 |
/* |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
2 |
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
4 |
* |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
8 |
* |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
13 |
* accompanied this code). |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
14 |
* |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
18 |
* |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
21 |
* questions. |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
22 |
*/ |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
23 |
|
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
24 |
/* |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
25 |
* @test |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
26 |
* @bug 8134288 |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
27 |
* @summary Store nodes may not have a control if used to update profiling |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
28 |
* @run main/othervm -XX:-ProfileInterpreter -XX:-TieredCompilation -XX:-BackgroundCompilation TestMoveStoresOutOfLoopsStoreNoCtrl |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
29 |
* |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
30 |
*/ |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
31 |
|
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
32 |
public class TestMoveStoresOutOfLoopsStoreNoCtrl { |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
33 |
|
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
34 |
static void test(boolean flag) { |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
35 |
for (int i = 0; i < 20000; i++) { |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
36 |
if (flag) { |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
37 |
int j = 0; |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
38 |
do { |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
39 |
j++; |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
40 |
} while(j < 10); |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
41 |
} |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
42 |
} |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
43 |
} |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
44 |
|
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
45 |
static public void main(String[] args) { |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
46 |
test(false); |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
47 |
} |
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
48 |
|
d38126f16dbe
8134288: compiler/runtime/6859338/Test6859338.java crashes in PhaseIdealLoop::try_move_store_after_loop
roland
parents:
diff
changeset
|
49 |
} |