test/compiler/types/correctness/OffTest.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/test/compiler/types/correctness/OffTest.java Tue Oct 28 19:58:59 2014
--- new/test/compiler/types/correctness/OffTest.java Tue Oct 28 19:58:59 2014
*** 34,46 ****
--- 34,46 ----
* @run main/timeout=1200 OffTest
*/
import com.oracle.java.testlibrary.OutputAnalyzer;
import com.oracle.java.testlibrary.ProcessTools;
! import scenarios.ProfilingType;
! import com.oracle.java.testlibrary.Utils;
import java.util.Random;
+ import scenarios.ProfilingType;
public class OffTest {
private static final String[] OPTIONS = {
"-Xbootclasspath/a:.",
"-XX:+IgnoreUnrecognizedVMOptions",
*** 61,78 ****
--- 61,71 ----
private static final int TYPE_PROFILE_LEVEL_BOUND = 3;
private static final int DEFAULT_COUNT = 10;
private static final int PROFILING_TYPE_INDEX = OPTIONS.length - 1;
private static final int TYPE_PROFILE_INDEX = OPTIONS.length - 4;
private static final int USE_TYPE_SPECULATION_INDEX = OPTIONS.length - 3;
! private static final Random RNG = Utils.getRandomInstance();
static {
String str = System.getProperty("seed");
long seed = str != null ? Long.parseLong(str) : new Random().nextLong();
RNG = new Random(seed);
System.out.printf("-Dseed=%d%n", seed);
}
public static void main(String[] args) throws Exception {
int count = DEFAULT_COUNT;
if (args.length > 0) {
count = Integer.parseInt(args[0]) ;
test/compiler/types/correctness/OffTest.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File