< prev index next >

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

Print this page

 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 -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedClassPointers -Xmx128m
 38  *                   -XX:CompileCommand=compileonly,compiler.arraycopy.TestObjectArrayClone::testClone*
 39  *                   -XX:CompileCommand=compileonly,jdk.internal.reflect.GeneratedMethodAccessor*::invoke
 40  *                   compiler.arraycopy.TestObjectArrayClone
 41  * @run main/othervm -Xbatch -XX:-UseTypeProfile
 42  *                   -XX:CompileCommand=compileonly,compiler.arraycopy.TestObjectArrayClone::testClone*
 43  *                   -XX:CompileCommand=compileonly,jdk.internal.reflect.GeneratedMethodAccessor*::invoke
 44  *                   -XX:CompileCommand=compileonly,*::invokeVirtual
 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;

 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 -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedClassPointers -Xmx128m
 38  *                   -XX:CompileCommand=compileonly,compiler.arraycopy.TestObjectArrayClone::testClone*
 39  *                   -XX:CompileCommand=compileonly,jdk.internal.reflect.GeneratedMethodAccessor*::invoke
 40  *                   compiler.arraycopy.TestObjectArrayClone
 41  * @run main/othervm -Xbatch -XX:-UseTypeProfile
 42  *                   -XX:CompileCommand=compileonly,compiler.arraycopy.TestObjectArrayClone::testClone*
 43  *                   -XX:CompileCommand=compileonly,jdk.internal.reflect.GeneratedMethodAccessor*::invoke
 44  *                   -XX:CompileCommand=compileonly,*::invokeVirtual
 45  *                   compiler.arraycopy.TestObjectArrayClone
 46  * @run main/othervm -Xbatch -XX:-UseTypeProfile -XX:-ReduceInitialCardMarks
 47  *                   -XX:CompileCommand=compileonly,compiler.arraycopy.TestObjectArrayClone::testClone*
 48  *                   -XX:CompileCommand=compileonly,jdk.internal.reflect.GeneratedMethodAccessor*::invoke
 49  *                   compiler.arraycopy.TestObjectArrayClone
 50  */
 51 
 52 package compiler.arraycopy;
 53 
 54 import java.lang.invoke.*;
 55 import java.lang.reflect.InvocationTargetException;
 56 import java.lang.reflect.Method;
 57 
 58 class Payload implements Cloneable {
 59     boolean b;
 60     int i;
 61     char c;
 62     String str;
 63     short s;
 64     int i2;
 65 
 66     public Payload(boolean b, int i, char c, String str, short s, int i2) {
 67         super();
 68         this.b = b;
 69         this.i = i;
< prev index next >