test/testlibrary/whitebox/sun/hotspot/WhiteBox.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff test/testlibrary/whitebox/sun/hotspot

test/testlibrary/whitebox/sun/hotspot/WhiteBox.java

Print this page
rev 7383 : 8059550: JEP-JDK-8043304: Test task: segment overflow w/ empty others
Reviewed-by: iigantyev


 134   public native int     getMethodCompilationLevel(Executable method, boolean isOsr);
 135   public native boolean testSetDontInlineMethod(Executable method, boolean value);
 136   public        int     getCompileQueuesSize() {
 137     return getCompileQueueSize(-1 /*any*/);
 138   }
 139   public native int     getCompileQueueSize(int compLevel);
 140   public native boolean testSetForceInlineMethod(Executable method, boolean value);
 141   public        boolean enqueueMethodForCompilation(Executable method, int compLevel) {
 142     return enqueueMethodForCompilation(method, compLevel, -1 /*InvocationEntryBci*/);
 143   }
 144   public native boolean enqueueMethodForCompilation(Executable method, int compLevel, int entry_bci);
 145   public native void    clearMethodState(Executable method);
 146   public native void    lockCompilation();
 147   public native void    unlockCompilation();
 148   public native int     getMethodEntryBci(Executable method);
 149   public native Object[] getNMethod(Executable method, boolean isOsr);
 150   public native long    allocateCodeBlob(int size, int type);
 151   public native void    freeCodeBlob(long addr);
 152   public native void    forceNMethodSweep();
 153   public native Object[] getCodeHeapEntries(int type);


 154 
 155   // Intered strings
 156   public native boolean isInStringTable(String str);
 157 
 158   // Memory
 159   public native void readReservedMemory();
 160   public native long allocateMetaspace(ClassLoader classLoader, long size);
 161   public native void freeMetaspace(ClassLoader classLoader, long addr, long size);
 162   public native long incMetaspaceCapacityUntilGC(long increment);
 163   public native long metaspaceCapacityUntilGC();
 164 
 165   // force Young GC
 166   public native void youngGC();
 167 
 168   // force Full GC
 169   public native void fullGC();
 170 
 171   // Tests on ReservedSpace/VirtualSpace classes
 172   public native int stressVirtualSpaceResize(long reservedSpaceSize, long magnitude, long iterations);
 173   public native void runMemoryUnitTests();




 134   public native int     getMethodCompilationLevel(Executable method, boolean isOsr);
 135   public native boolean testSetDontInlineMethod(Executable method, boolean value);
 136   public        int     getCompileQueuesSize() {
 137     return getCompileQueueSize(-1 /*any*/);
 138   }
 139   public native int     getCompileQueueSize(int compLevel);
 140   public native boolean testSetForceInlineMethod(Executable method, boolean value);
 141   public        boolean enqueueMethodForCompilation(Executable method, int compLevel) {
 142     return enqueueMethodForCompilation(method, compLevel, -1 /*InvocationEntryBci*/);
 143   }
 144   public native boolean enqueueMethodForCompilation(Executable method, int compLevel, int entry_bci);
 145   public native void    clearMethodState(Executable method);
 146   public native void    lockCompilation();
 147   public native void    unlockCompilation();
 148   public native int     getMethodEntryBci(Executable method);
 149   public native Object[] getNMethod(Executable method, boolean isOsr);
 150   public native long    allocateCodeBlob(int size, int type);
 151   public native void    freeCodeBlob(long addr);
 152   public native void    forceNMethodSweep();
 153   public native Object[] getCodeHeapEntries(int type);
 154   public native int     getCompilationActivityMode();
 155   public native Object[] getCodeBlob(long addr);
 156   
 157   // Intered strings
 158   public native boolean isInStringTable(String str);
 159 
 160   // Memory
 161   public native void readReservedMemory();
 162   public native long allocateMetaspace(ClassLoader classLoader, long size);
 163   public native void freeMetaspace(ClassLoader classLoader, long addr, long size);
 164   public native long incMetaspaceCapacityUntilGC(long increment);
 165   public native long metaspaceCapacityUntilGC();
 166 
 167   // force Young GC
 168   public native void youngGC();
 169 
 170   // force Full GC
 171   public native void fullGC();
 172 
 173   // Tests on ReservedSpace/VirtualSpace classes
 174   public native int stressVirtualSpaceResize(long reservedSpaceSize, long magnitude, long iterations);
 175   public native void runMemoryUnitTests();


test/testlibrary/whitebox/sun/hotspot/WhiteBox.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File