< prev index next >

test/lib/sun/hotspot/WhiteBox.java

Print this page




 148   public native boolean testSetForceInlineMethod(Executable method, boolean value);
 149   public        boolean enqueueMethodForCompilation(Executable method, int compLevel) {
 150     return enqueueMethodForCompilation(method, compLevel, -1 /*InvocationEntryBci*/);
 151   }
 152   public native boolean enqueueMethodForCompilation(Executable method, int compLevel, int entry_bci);
 153   public native void    clearMethodState(Executable method);
 154   public native void    lockCompilation();
 155   public native void    unlockCompilation();
 156   public native int     getMethodEntryBci(Executable method);
 157   public native Object[] getNMethod(Executable method, boolean isOsr);
 158   public native long    allocateCodeBlob(int size, int type);
 159   public        long    allocateCodeBlob(long size, int type) {
 160       int intSize = (int) size;
 161       if ((long) intSize != size || size < 0) {
 162           throw new IllegalArgumentException(
 163                 "size argument has illegal value " + size);
 164       }
 165       return allocateCodeBlob( intSize, type);
 166   }
 167   public native void    freeCodeBlob(long addr);
 168   public        void    forceNMethodSweep() {
 169     try {
 170         forceNMethodSweep0().join();
 171     } catch (InterruptedException e) {
 172         Thread.currentThread().interrupt();
 173     }
 174   }
 175   public native Thread  forceNMethodSweep0();
 176   public native Object[] getCodeHeapEntries(int type);
 177   public native int     getCompilationActivityMode();
 178   public native Object[] getCodeBlob(long addr);
 179 
 180   // Intered strings
 181   public native boolean isInStringTable(String str);
 182 
 183   // Memory
 184   public native void readReservedMemory();
 185   public native long allocateMetaspace(ClassLoader classLoader, long size);
 186   public native void freeMetaspace(ClassLoader classLoader, long addr, long size);
 187   public native long incMetaspaceCapacityUntilGC(long increment);
 188   public native long metaspaceCapacityUntilGC();
 189 
 190   // Force Young GC
 191   public native void youngGC();
 192 
 193   // Force Full GC
 194   public native void fullGC();
 195 




 148   public native boolean testSetForceInlineMethod(Executable method, boolean value);
 149   public        boolean enqueueMethodForCompilation(Executable method, int compLevel) {
 150     return enqueueMethodForCompilation(method, compLevel, -1 /*InvocationEntryBci*/);
 151   }
 152   public native boolean enqueueMethodForCompilation(Executable method, int compLevel, int entry_bci);
 153   public native void    clearMethodState(Executable method);
 154   public native void    lockCompilation();
 155   public native void    unlockCompilation();
 156   public native int     getMethodEntryBci(Executable method);
 157   public native Object[] getNMethod(Executable method, boolean isOsr);
 158   public native long    allocateCodeBlob(int size, int type);
 159   public        long    allocateCodeBlob(long size, int type) {
 160       int intSize = (int) size;
 161       if ((long) intSize != size || size < 0) {
 162           throw new IllegalArgumentException(
 163                 "size argument has illegal value " + size);
 164       }
 165       return allocateCodeBlob( intSize, type);
 166   }
 167   public native void    freeCodeBlob(long addr);
 168   public native void    forceNMethodSweep();







 169   public native Object[] getCodeHeapEntries(int type);
 170   public native int     getCompilationActivityMode();
 171   public native Object[] getCodeBlob(long addr);
 172 
 173   // Intered strings
 174   public native boolean isInStringTable(String str);
 175 
 176   // Memory
 177   public native void readReservedMemory();
 178   public native long allocateMetaspace(ClassLoader classLoader, long size);
 179   public native void freeMetaspace(ClassLoader classLoader, long addr, long size);
 180   public native long incMetaspaceCapacityUntilGC(long increment);
 181   public native long metaspaceCapacityUntilGC();
 182 
 183   // Force Young GC
 184   public native void youngGC();
 185 
 186   // Force Full GC
 187   public native void fullGC();
 188 


< prev index next >