--- old/test/testlibrary/whitebox/sun/hotspot/WhiteBox.java 2014-11-05 19:24:02.679498994 +0300 +++ new/test/testlibrary/whitebox/sun/hotspot/WhiteBox.java 2014-11-05 19:24:02.439498998 +0300 @@ -143,8 +143,14 @@ } public native boolean enqueueMethodForCompilation(Executable method, int compLevel, int entry_bci); public native void clearMethodState(Executable method); + public native void lockCompilation(); + public native void unlockCompilation(); public native int getMethodEntryBci(Executable method); public native Object[] getNMethod(Executable method, boolean isOsr); + public native long allocateCodeHeap(int size, int type); + public native void freeCodeHeap(long addr); + public native void forceNMethodSweep(); + public native Object[] getCodeHeapEntries(int type); // Intered strings public native boolean isInStringTable(String str);