/* * Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions.
*/
/* * @test * @bug 6711117 * @summary Assertion in 64bit server vm (flat != TypePtr::BOTTOM,"cannot alias-analyze an untyped ptr") * * @run main/othervm -Xcomp -XX:+IgnoreUnrecognizedVMOptions -XX:+EliminateAutoBox -XX:AutoBoxCacheMax=20000 * -XX:+UseCompressedOops compiler.c2.cr6711117.Test
*/
public String toString()
{
String result = "[\n";
result += "Test_Class_0.var_2 = "; result += Test.Printer.print(var_2);
result += "\n";
result += "Test_Class_0.var_1 = "; result += Test.Printer.print(var_1);
result += "\n";
result += "Test_Class_0.var_3 = "; result += Test.Printer.print(var_3);
result += "";
result += "\n]"; return result;
}
}
public Test_Class_1()
{
var_29 = Test_Class_0.var_3;
((false ? false || ! !true : ! (! !true & !true)) ? new Test_Class_0() : new Test_Class_0()).var_2++;
var_23 -= 2.963694E38F;
}
public String toString()
{
String result = "[\n";
result += "Test_Class_1.var_21 = "; result += Test.Printer.print(var_21);
result += "\n";
result += "Test_Class_1.var_23 = "; result += Test.Printer.print(var_23);
result += "\n";
result += "Test_Class_1.var_24 = "; result += Test.Printer.print(var_24);
result += "\n";
result += "Test_Class_1.var_26 = "; result += Test.Printer.print(var_26);
result += "\n";
result += "Test_Class_1.var_27 = "; result += Test.Printer.print(var_27);
result += "\n";
result += "Test_Class_1.var_28 = "; result += Test.Printer.print(var_28);
result += "\n";
result += "Test_Class_1.var_22 = "; result += Test.Printer.print(var_22);
result += "\n";
result += "Test_Class_1.var_25 = "; result += Test.Printer.print(var_25);
result += "\n";
result += "Test_Class_1.var_29 = "; result += Test.Printer.print(var_29);
result += "";
result += "\n]"; return result;
}
}
public String toString()
{
String result = "[\n";
result += "Test_Class_2.var_32 = "; result += Test.Printer.print(var_32);
result += "\n";
result += "Test_Class_2.var_36 = "; result += Test.Printer.print(var_36);
result += "\n";
result += "Test_Class_2.var_30 = "; result += Test.Printer.print(var_30);
result += "\n";
result += "Test_Class_2.var_34 = "; result += Test.Printer.print(var_34);
result += "\n";
result += "Test_Class_2.var_35 = "; result += Test.Printer.print(var_35);
result += "\n";
result += "Test_Class_2.var_33 = "; result += Test.Printer.print(var_33);
result += "\n";
result += "Test_Class_2.var_31 = "; result += Test.Printer.print(var_31);
result += "";
result += "\n]"; return result;
}
}
public String toString()
{
String result = "[\n";
result += "Test_Class_3.var_32 = "; result += Test.Printer.print(var_32);
result += "\n";
result += "Test_Class_3.var_36 = "; result += Test.Printer.print(var_36);
result += "\n";
result += "Test_Class_3.var_30 = "; result += Test.Printer.print(var_30);
result += "\n";
result += "Test_Class_3.var_34 = "; result += Test.Printer.print(var_34);
result += "\n";
result += "Test_Class_3.var_35 = "; result += Test.Printer.print(var_35);
result += "\n";
result += "Test_Class_3.var_33 = "; result += Test.Printer.print(var_33);
result += "\n";
result += "Test_Class_3.var_31 = "; result += Test.Printer.print(var_31);
result += "\n";
result += "Test_Class_3.var_39 = "; result += Test.Printer.print(var_39);
result += "\n";
result += "Test_Class_3.var_40 = "; result += Test.Printer.print(var_40);
result += "";
result += "\n]"; return result;
}
}
public String toString()
{
String result = "[\n";
result += "Test_Class_4.var_50 = "; result += Test.Printer.print(var_50);
result += "\n";
result += "Test_Class_4.var_52 = "; result += Test.Printer.print(var_52);
result += "\n";
result += "Test_Class_4.var_53 = "; result += Test.Printer.print(var_53);
result += "\n";
result += "Test_Class_4.var_47 = "; result += Test.Printer.print(var_47);
result += "\n";
result += "Test_Class_4.var_49 = "; result += Test.Printer.print(var_49);
result += "\n";
result += "Test_Class_4.var_48 = "; result += Test.Printer.print(var_48);
result += "\n";
result += "Test_Class_4.var_51 = "; result += Test.Printer.print(var_51);
result += "\n";
result += "Test_Class_4.var_54 = "; result += Test.Printer.print(var_54);
result += "";
result += "\n]"; return result;
}
}
public String toString()
{
String result = "[\n";
result += "Test_Class_5.var_50 = "; result += Test.Printer.print(var_50);
result += "\n";
result += "Test_Class_5.var_60 = "; result += Test.Printer.print(var_60);
result += "\n";
result += "Test_Class_5.var_52 = "; result += Test.Printer.print(var_52);
result += "\n";
result += "Test_Class_5.var_53 = "; result += Test.Printer.print(var_53);
result += "\n";
result += "Test_Class_5.var_47 = "; result += Test.Printer.print(var_47);
result += "\n";
result += "Test_Class_5.var_49 = "; result += Test.Printer.print(var_49);
result += "\n";
result += "Test_Class_5.var_48 = "; result += Test.Printer.print(var_48);
result += "\n";
result += "Test_Class_5.var_61 = "; result += Test.Printer.print(var_61);
result += "\n";
result += "Test_Class_5.var_51 = "; result += Test.Printer.print(var_51);
result += "\n";
result += "Test_Class_5.var_54 = "; result += Test.Printer.print(var_54);
result += "";
result += "\n]"; return result;
}
}
privatestatic String print_r(java.util.Stack visitedObjects, Object arg)
{
String result = ""; if (arg == null)
result += "null"; else if (arg.getClass().isArray())
{ for (int i = 0; i < visitedObjects.size(); i++) if (visitedObjects.elementAt(i) == arg) return"";
visitedObjects.push(arg);
final String delimiter = ", ";
result += "[";
if (arg instanceof Object[])
{
Object[] array = (Object[]) arg; for (int i = 0; i < array.length; i++)
{
result += print_r(visitedObjects, array[i]); if (i < array.length - 1) result += delimiter;
}
} else if (arg instanceofboolean[])
{ boolean[] array = (boolean[]) arg; for (int i = 0; i < array.length; i++)
{
result += print(array[i]); if (i < array.length - 1) result += delimiter;
}
} else if (arg instanceofbyte[])
{ byte[] array = (byte[]) arg; for (int i = 0; i < array.length; i++)
{
result += print(array[i]); if (i < array.length - 1) result += delimiter;
}
} else if (arg instanceofshort[])
{ short[] array = (short[]) arg; for (int i = 0; i < array.length; i++)
{
result += print(array[i]); if (i < array.length - 1) result += delimiter;
}
} else if (arg instanceofchar[])
{ char[] array = (char[]) arg; for (int i = 0; i < array.length; i++)
{
result += print(array[i]); if (i < array.length - 1) result += delimiter;
}
} else if (arg instanceofint[])
{ int[] array = (int[]) arg; for (int i = 0; i < array.length; i++)
{
result += print(array[i]); if (i < array.length - 1) result += delimiter;
}
} else if (arg instanceoflong[])
{ long[] array = (long[]) arg; for (int i = 0; i < array.length; i++)
{
result += print(array[i]); if (i < array.length - 1) result += delimiter;
}
} else if (arg instanceoffloat[])
{ float[] array = (float[]) arg; for (int i = 0; i < array.length; i++)
{
result += print(array[i]); if (i < array.length - 1) result += delimiter;
}
} else if (arg instanceofdouble[])
{ double[] array = (double[]) arg; for (int i = 0; i < array.length; i++)
{
result += print(array[i]); if (i < array.length - 1) result += delimiter;
}
}
result += "]";
visitedObjects.pop();
} else
{
result += arg.toString();
}
return result;
}
}
}
Messung V0.5
¤ Dauer der Verarbeitung: 0.3 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.