view c1x4hotspotsrc/HotSpotTest/src/C1XTest.java @ 1425:98fffb304868

tlab-allocated "new instance", invokespecial, support for static fields in COMPILER_CLASSES_DO
author Lukas Stadler <lukas.stadler@oracle.com>
date Tue, 17 Aug 2010 17:34:25 -0700
parents 760213a60e8b
children efba53f86c4f
line wrap: on
line source

import java.io.IOException;

public class C1XTest {

	public static void main(String[] args) throws IOException {
		/*
		 * new C1XCompiledTest.C(); System.out.println("--- instanceof A");
		 * System.out.println(new C1XCompiledTest().doCalc(10, 3,
		 * C1XTest.class)); System.out.println("B instanceof A");
		 * System.out.println(new C1XCompiledTest().doCalc(10, 3, new
		 * C1XCompiledTest.B())); System.out.println("A instanceof A");
		 * System.out.println(new C1XCompiledTest().doCalc(10, 3, new
		 * C1XCompiledTest.A())); System.out.println("end");
		 */
		new C1XCompiledTest.B();
		System.out.println(new C1XCompiledTest().doCalc(10, 3, C1XTest.class));
		/*
		 * for (int l = 0; l < 4; l++) { try { System.out.println(new
		 * C1XCompiledTest().doCalc(new int[l])); } catch (Throwable t) {
		 * t.printStackTrace(); }}
		 */
	}
}