--- old/src/share/vm/prims/whitebox.hpp 2014-12-05 15:29:00.381425935 +0300 +++ new/src/share/vm/prims/whitebox.hpp 2014-12-05 15:29:00.313425934 +0300 @@ -74,7 +74,7 @@ static JavaThread* create_sweeper_thread(TRAPS); static int get_blob_type(const CodeBlob* code); static CodeHeap* get_code_heap(int blob_type); - static CodeBlob* allocate_code_blob(int blob_type, int size); + static CodeBlob* allocate_code_blob(int size, int blob_type); static int array_bytes_to_length(size_t bytes); static void register_methods(JNIEnv* env, jclass wbclass, JavaThread* thread, JNINativeMethod* method_array, int method_count); --- 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 {