README

Mon, 18 Sep 2017 14:54:20 +0800

author
fujie
date
Mon, 18 Sep 2017 14:54:20 +0800
changeset 6884
37fd1c756f31
parent 0
f90c822e73f8
permissions
-rw-r--r--

[Interpreter] Performance of the new operation is 10% up.

Running time of the test program: 206ms --> 187ms (on 3A3000-1way @ 1.4 GHz)

public class Test {

private static final int MAX = 400000;

private int a;
private char b;
private char c;
private long d;
private short e;
private byte f;

Test() {
a = 1;
b = 1;
c = 1;
d = 1;
e = 1;
f = 1;
}

public long sum() {
return a + b + c + d + e + f;
}

public static void main(String[] args) throws Exception {
long t = System.currentTimeMillis();
Test[] arr = new Test[MAX];
for (int i = 0; i < MAX; i++) {
arr[i] = new Test();
}
System.out.println((System.currentTimeMillis() - t) + "ms");
//System.gc();
System.out.println(arr[0].sum());
}

}

     1 README:
     2   This file should be located at the top of the hotspot Mercurial repository.
     4   See http://openjdk.java.net/ for more information about the OpenJDK.
     6   See ../README-builds.html for complete details on build machine requirements.
     8 Simple Build Instructions:
    10     cd make && gnumake
    12   The files that will be imported into the jdk build will be in the "build"
    13   directory.

mercurial