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 8189439 27 * @summary Parameters type profiling is not performed from aarch64 interpreter 28 * @requires vm.flavor == "server" & vm.compMode == "Xmixed" & !vm.emulatedClient & !vm.graal.enabled 29 * @library /test/lib / 30 * @build sun.hotspot.WhiteBox 31 * @run driver ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission 32 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI 33 * -XX:-BackgroundCompilation -XX:-UseOnStackReplacement 34 * -server -XX:-TieredCompilation -XX:TypeProfileLevel=020 35 * compiler.profiling.TestTypeProfiling 36 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI 37 * -XX:-BackgroundCompilation -XX:-UseOnStackReplacement 38 * -server -XX:-TieredCompilation -XX:TypeProfileLevel=200 39 * compiler.profiling.TestTypeProfiling 40 */ 41 42 package compiler.profiling; 43 44 import jdk.test.lib.Platform; 45 import sun.hotspot.WhiteBox; 46 import compiler.whitebox.CompilerWhiteBoxTest; 47 import java.lang.reflect.Method; 48 49 public class TestTypeProfiling { 50 51 public static int[] mParamTypeCheck(Object in) { 52 try { 53 return (int[]) in; 54 } catch (ClassCastException cce) { 55 return null; 56 } 57 } | 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 8189439 27 * @summary Parameters type profiling is not performed from aarch64 interpreter 28 * @requires vm.flavor == "server" & vm.compMode == "Xmixed" & !vm.emulatedClient & !vm.graal.enabled 29 * @library /test/lib / 30 * @build sun.hotspot.WhiteBox 31 * @run driver ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission 32 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI 33 * -XX:-BackgroundCompilation -XX:-UseOnStackReplacement 34 * -XX:CompileThreshold=10000 35 * -server -XX:-TieredCompilation -XX:TypeProfileLevel=020 36 * compiler.profiling.TestTypeProfiling 37 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI 38 * -XX:-BackgroundCompilation -XX:-UseOnStackReplacement 39 * -XX:CompileThreshold=10000 40 * -server -XX:-TieredCompilation -XX:TypeProfileLevel=200 41 * compiler.profiling.TestTypeProfiling 42 */ 43 44 package compiler.profiling; 45 46 import jdk.test.lib.Platform; 47 import sun.hotspot.WhiteBox; 48 import compiler.whitebox.CompilerWhiteBoxTest; 49 import java.lang.reflect.Method; 50 51 public class TestTypeProfiling { 52 53 public static int[] mParamTypeCheck(Object in) { 54 try { 55 return (int[]) in; 56 } catch (ClassCastException cce) { 57 return null; 58 } 59 } |