< prev index next >

test/hotspot/jtreg/compiler/arraycopy/TestObjectArrayClone.java

Print this page

 22  */
 23 
 24 /*
 25  * @test
 26  * @bug 8155643 8268125 8270461 8270098 8332959
 27  * @summary Test Object.clone() intrinsic.
 28  * @modules java.base/java.lang:+open
 29  *
 30  * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-ReduceInitialCardMarks
 31  *                   -XX:CompileCommand=compileonly,compiler.arraycopy.TestObjectArrayClone::testClone*
 32  *                   -XX:CompileCommand=compileonly,jdk.internal.reflect.GeneratedMethodAccessor*::invoke
 33  *                   compiler.arraycopy.TestObjectArrayClone
 34  * @run main/othervm -XX:CompileCommand=compileonly,compiler.arraycopy.TestObjectArrayClone::testClone*
 35  *                   -XX:CompileCommand=compileonly,jdk.internal.reflect.GeneratedMethodAccessor*::invoke
 36  *                   compiler.arraycopy.TestObjectArrayClone
 37  * @run main/othervm -Xbatch -XX:-UseTypeProfile
 38  *                   -XX:CompileCommand=compileonly,compiler.arraycopy.TestObjectArrayClone::testClone*
 39  *                   -XX:CompileCommand=compileonly,jdk.internal.reflect.GeneratedMethodAccessor*::invoke
 40  *                   -XX:CompileCommand=compileonly,*::invokeVirtual
 41  *                   compiler.arraycopy.TestObjectArrayClone




 42  */
 43 
 44 package compiler.arraycopy;
 45 
 46 import java.lang.invoke.*;
 47 import java.lang.reflect.InvocationTargetException;
 48 import java.lang.reflect.Method;
 49 
 50 class Payload implements Cloneable {
 51     boolean b;
 52     int i;
 53     char c;
 54     String str;
 55     short s;
 56     int i2;
 57 
 58     public Payload(boolean b, int i, char c, String str, short s, int i2) {
 59         super();
 60         this.b = b;
 61         this.i = i;

 22  */
 23 
 24 /*
 25  * @test
 26  * @bug 8155643 8268125 8270461 8270098 8332959
 27  * @summary Test Object.clone() intrinsic.
 28  * @modules java.base/java.lang:+open
 29  *
 30  * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-ReduceInitialCardMarks
 31  *                   -XX:CompileCommand=compileonly,compiler.arraycopy.TestObjectArrayClone::testClone*
 32  *                   -XX:CompileCommand=compileonly,jdk.internal.reflect.GeneratedMethodAccessor*::invoke
 33  *                   compiler.arraycopy.TestObjectArrayClone
 34  * @run main/othervm -XX:CompileCommand=compileonly,compiler.arraycopy.TestObjectArrayClone::testClone*
 35  *                   -XX:CompileCommand=compileonly,jdk.internal.reflect.GeneratedMethodAccessor*::invoke
 36  *                   compiler.arraycopy.TestObjectArrayClone
 37  * @run main/othervm -Xbatch -XX:-UseTypeProfile
 38  *                   -XX:CompileCommand=compileonly,compiler.arraycopy.TestObjectArrayClone::testClone*
 39  *                   -XX:CompileCommand=compileonly,jdk.internal.reflect.GeneratedMethodAccessor*::invoke
 40  *                   -XX:CompileCommand=compileonly,*::invokeVirtual
 41  *                   compiler.arraycopy.TestObjectArrayClone
 42  * @run main/othervm -Xbatch -XX:-UseTypeProfile -XX:-ReduceInitialCardMarks
 43  *                   -XX:CompileCommand=compileonly,compiler.arraycopy.TestObjectArrayClone::testClone*
 44  *                   -XX:CompileCommand=compileonly,jdk.internal.reflect.GeneratedMethodAccessor*::invoke
 45  *                   compiler.arraycopy.TestObjectArrayClone
 46  */
 47 
 48 package compiler.arraycopy;
 49 
 50 import java.lang.invoke.*;
 51 import java.lang.reflect.InvocationTargetException;
 52 import java.lang.reflect.Method;
 53 
 54 class Payload implements Cloneable {
 55     boolean b;
 56     int i;
 57     char c;
 58     String str;
 59     short s;
 60     int i2;
 61 
 62     public Payload(boolean b, int i, char c, String str, short s, int i2) {
 63         super();
 64         this.b = b;
 65         this.i = i;
< prev index next >