Mercurial > hg > graal-compiler
comparison c1x4hotspotsrc/HotSpotTest/src/C1XTest.java @ 1439:d0c8d3a2a7e8
Modified domake script to use (and require) JRE7 environment variable for find the base of a JRE 7 installation. This script no also ensures that $JRE7/lib/amd64/jvm.cfg has the right value for '-client'.
Added c1x4hotspotsrc/hotspot/java as indirect launcher for $JRE7/bin/java that can be referenced from Eclipse launch configuration.
Copied .checkstyle_checks.xml from C1X project to c1x4hotspotsrc/HotSpotVM so that it can be used by HotSpotVM project without hard coded path to C1X in another Eclipse workspace.
Various other changes to reflect changes in CRI and C1X.
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 29 Oct 2010 18:14:17 +0200 |
parents | 20a3896518ac |
children |
comparison
equal
deleted
inserted
replaced
1438:a7a0ef3c6858 | 1439:d0c8d3a2a7e8 |
---|---|
1 import java.io.IOException; | 1 import java.io.*; |
2 | 2 |
3 public class C1XTest { | 3 public class C1XTest { |
4 | 4 |
5 public static long sum = 10; | 5 public static long sum = 10; |
6 | 6 |
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); | |
27 } | 39 } |
28 | 40 |
29 public static void main(String[] args) throws IOException, Exception { | 41 public static void main(String[] args) throws IOException, Exception { |
30 for (int i = 0; i < 10000; i++) { | 42 for (int i = 0; i < 10000; i++) { |
31 System.out.print((i & 0xfff) != 0 ? "" : "."); | 43 System.out.print((i & 0xfff) != 0 ? "" : "."); |