test/gc/class_unloading/TestCMSClassUnloadingEnabledHWM.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff test/gc/class_unloading/TestCMSClassUnloadingEnabledHWM.java

test/gc/class_unloading/TestCMSClassUnloadingEnabledHWM.java

Print this page

        

*** 23,47 **** /* * @test * @key gc * @bug 8049831 ! * @library /testlibrary /testlibrary/whitebox * @build TestCMSClassUnloadingEnabledHWM ! * @run main ClassFileInstaller sun.hotspot.WhiteBox ! * sun.hotspot.WhiteBox$WhiteBoxPermission * @run driver TestCMSClassUnloadingEnabledHWM * @summary Test that -XX:-CMSClassUnloadingEnabled will trigger a Full GC when more than MetaspaceSize metadata is allocated. */ import com.oracle.java.testlibrary.OutputAnalyzer; import com.oracle.java.testlibrary.ProcessTools; import java.lang.management.GarbageCollectorMXBean; import java.lang.management.ManagementFactory; import java.util.ArrayList; import java.util.Arrays; ! import sun.hotspot.WhiteBox; public class TestCMSClassUnloadingEnabledHWM { private static long MetaspaceSize = 32 * 1024 * 1024; private static long YoungGenSize = 32 * 1024 * 1024; --- 23,47 ---- /* * @test * @key gc * @bug 8049831 ! * @library /testlibrary /../../test/lib * @build TestCMSClassUnloadingEnabledHWM ! * @run main ClassFileInstaller jdk.testlib.WhiteBox ! * jdk.testlib.WhiteBox$WhiteBoxPermission * @run driver TestCMSClassUnloadingEnabledHWM * @summary Test that -XX:-CMSClassUnloadingEnabled will trigger a Full GC when more than MetaspaceSize metadata is allocated. */ import com.oracle.java.testlibrary.OutputAnalyzer; import com.oracle.java.testlibrary.ProcessTools; import java.lang.management.GarbageCollectorMXBean; import java.lang.management.ManagementFactory; import java.util.ArrayList; import java.util.Arrays; ! import jdk.testlib.WhiteBox; public class TestCMSClassUnloadingEnabledHWM { private static long MetaspaceSize = 32 * 1024 * 1024; private static long YoungGenSize = 32 * 1024 * 1024;
test/gc/class_unloading/TestCMSClassUnloadingEnabledHWM.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File