add jdk-test target, and fix failures

The intent of this target is to run our test suite against the installed jre.
This should help prevent our VM from diverging in implementation from the jdk.

The remainder of this commit fixes the problems that this exposes.
This commit is contained in:
Joshua Warner
2013-12-06 14:56:02 -07:00
parent 39e3850ed8
commit 47a7732a81
11 changed files with 44 additions and 19 deletions

View File

@ -5,10 +5,10 @@ import java.lang.reflect.Field;
public final class Unsafe {
private void Unsafe() { }
private static final Unsafe Instance = new Unsafe();
private static final Unsafe theUnsafe = new Unsafe();
public static Unsafe getUnsafe() {
return Instance;
return theUnsafe;
}
public native long allocateMemory(long bytes);