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

Print this page
rev 6878 : 8049599: MetaspaceGC::_capacity_until_GC can overflow

*** 147,156 **** --- 147,158 ---- // Memory public native void readReservedMemory(); public native long allocateMetaspace(ClassLoader classLoader, long size); public native void freeMetaspace(ClassLoader classLoader, long addr, long size); + public native long incMetaspaceCapacityUntilGC(long increment); + public native long metaspaceCapacityUntilGC(); // force Full GC public native void fullGC(); // Tests on ReservedSpace/VirtualSpace classes