8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 8134031
27 * @summary Bad rewiring of memory edges when we split unique types during EA
28 * @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:CompileCommand=dontinline,TestEABadMergeMem::m_notinlined TestEABadMergeMem
29 *
30 */
31
32 public class TestEABadMergeMem {
33
34 static class Box {
35 int i;
36 }
37
38 static void m_notinlined() {
39 }
40
41 static float dummy1;
42 static float dummy2;
43
44 static int test(Box a, Box c, int i, int j, int k, boolean flag1, boolean flag2) {
45 Box b = new Box(); // non escaping
46 a.i = i;
47 b.i = j;
48 c.i = k;
49
50 m_notinlined();
|
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 8134031
27 * @summary Bad rewiring of memory edges when we split unique types during EA
28 *
29 * @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement
30 * -XX:CompileCommand=dontinline,compiler.escapeAnalysis.TestEABadMergeMem::m_notinlined
31 * compiler.escapeAnalysis.TestEABadMergeMem
32 */
33
34 package compiler.escapeAnalysis;
35
36 public class TestEABadMergeMem {
37
38 static class Box {
39 int i;
40 }
41
42 static void m_notinlined() {
43 }
44
45 static float dummy1;
46 static float dummy2;
47
48 static int test(Box a, Box c, int i, int j, int k, boolean flag1, boolean flag2) {
49 Box b = new Box(); // non escaping
50 a.i = i;
51 b.i = j;
52 c.i = k;
53
54 m_notinlined();
|