--- old/test/testlibrary/whitebox/sun/hotspot/WhiteBox.java 2014-12-05 15:29:00.745425939 +0300 +++ new/test/testlibrary/whitebox/sun/hotspot/WhiteBox.java 2014-12-05 15:29:00.681425939 +0300 @@ -152,6 +152,9 @@ public native int getMethodEntryBci(Executable method); public native Object[] getNMethod(Executable method, boolean isOsr); public native long allocateCodeBlob(int size, int type); + public long allocateCodeBlob(long size, int type) { + return allocateCodeBlob((int) size, type); + } public native void freeCodeBlob(long addr); public void forceNMethodSweep() { try {