comparison c1x4hotspotsrc/HotSpotTest/src/C1XTest.java @ 1435:20a3896518ac

Initial adjustments to make C1X4HotSpot compile and run with latest Maxine version.
author Thomas Wuerthinger <wuerthinger@ssw.jku.at>
date Fri, 22 Oct 2010 17:31:38 +0200
parents 72cfb36c6bb2
children d0c8d3a2a7e8
comparison
equal deleted inserted replaced
1434:72cfb36c6bb2 1435:20a3896518ac
22 System.out.println("enter1"); 22 System.out.println("enter1");
23 System.gc(); 23 System.gc();
24 System.out.println("enter2"); 24 System.out.println("enter2");
25 } 25 }
26 System.out.println("exit"); 26 System.out.println("exit");
27 }
28
29 public static void main2(String[] args) {
30 Other.I[] array = new Other.I[] { new Other.A(), new Other.B(),
31 new Other.C(), new Other.A(), new Other.B(), new Other.C() };
32
33 int sum = 0;
34 for (int i = 0; i < 20; i++)
35 for (Other.I o : array) {
36 sum += o.v();
37 }
38 System.out.println(sum);
39 } 27 }
40 28
41 public static void main(String[] args) throws IOException, Exception { 29 public static void main(String[] args) throws IOException, Exception {
42 for (int i = 0; i < 10000; i++) { 30 for (int i = 0; i < 10000; i++) {
43 System.out.print((i & 0xfff) != 0 ? "" : "."); 31 System.out.print((i & 0xfff) != 0 ? "" : ".");