29 * @run main/othervm -Xint -XX:+EnableValhalla VTBufferTest generate-and-run 30 * @run main/othervm -Xint -XX:+EnableValhalla -XX:ValueTypesBufferMaxMemory=0 VTBufferTest generate-and-run 31 * @run main/othervm -Xint -XX:+EnableValhalla -XX:BigValueTypeThreshold=196 VTBufferTest generate-and-run 32 */ 33 34 /* This test generates its source code. 35 * To reproduce a run (for instance to investigate a failure), look at 36 * the test output and search for a line starting with "Seed=". The value 37 * at the end of the line is the seed used to generate the test. 38 * It possible to re-generate the same test with the following commande 39 * line: 40 * $ java <VMOptions> VTBufferTest generate-and-run -seed <seed> 41 * where <seed> is the seed value from the test output. 42 * The test source code is generated in the current directory with 43 * names Value[0-9][0-9].java and Loop.java. 44 * Once generated, the test can be run again without going through 45 * the generation phase with the following commande line: 46 * $ java <VMOptions> VTBufferTest run 47 */ 48 49 import jvm.internal.value.*; 50 51 import javax.management.*; 52 import javax.tools.JavaCompiler; 53 import javax.tools.JavaFileObject; 54 import javax.tools.StandardJavaFileManager; 55 import javax.tools.ToolProvider; 56 import java.io.File; 57 import java.io.IOException; 58 import java.io.PrintWriter; 59 import java.lang.management.*; 60 import java.lang.reflect.InvocationTargetException; 61 import java.lang.reflect.Method; 62 import java.util.Arrays; 63 import java.util.List; 64 import java.util.Random; 65 import java.net.URL; 66 import java.net.URLClassLoader; 67 import java.util.ArrayList; 68 69 public class VTBufferTest implements Runnable { 70 static Random random; | 29 * @run main/othervm -Xint -XX:+EnableValhalla VTBufferTest generate-and-run 30 * @run main/othervm -Xint -XX:+EnableValhalla -XX:ValueTypesBufferMaxMemory=0 VTBufferTest generate-and-run 31 * @run main/othervm -Xint -XX:+EnableValhalla -XX:BigValueTypeThreshold=196 VTBufferTest generate-and-run 32 */ 33 34 /* This test generates its source code. 35 * To reproduce a run (for instance to investigate a failure), look at 36 * the test output and search for a line starting with "Seed=". The value 37 * at the end of the line is the seed used to generate the test. 38 * It possible to re-generate the same test with the following commande 39 * line: 40 * $ java <VMOptions> VTBufferTest generate-and-run -seed <seed> 41 * where <seed> is the seed value from the test output. 42 * The test source code is generated in the current directory with 43 * names Value[0-9][0-9].java and Loop.java. 44 * Once generated, the test can be run again without going through 45 * the generation phase with the following commande line: 46 * $ java <VMOptions> VTBufferTest run 47 */ 48 49 import javax.management.*; 50 import javax.tools.JavaCompiler; 51 import javax.tools.JavaFileObject; 52 import javax.tools.StandardJavaFileManager; 53 import javax.tools.ToolProvider; 54 import java.io.File; 55 import java.io.IOException; 56 import java.io.PrintWriter; 57 import java.lang.management.*; 58 import java.lang.reflect.InvocationTargetException; 59 import java.lang.reflect.Method; 60 import java.util.Arrays; 61 import java.util.List; 62 import java.util.Random; 63 import java.net.URL; 64 import java.net.URLClassLoader; 65 import java.util.ArrayList; 66 67 public class VTBufferTest implements Runnable { 68 static Random random; |