test/runtime/ClassUnload/KeepAliveClass.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff test/runtime/ClassUnload/KeepAliveClass.java

test/runtime/ClassUnload/KeepAliveClass.java

Print this page

        

*** 22,42 **** */ /* * @test KeepAliveClass * @summary This test case uses a java.lang.Class instance to keep a class alive. ! * @library /testlibrary /testlibrary/whitebox /runtime/testlibrary * @library classes * @build KeepAliveClass test.Empty * @build ClassUnloadCommon ! * @run main ClassFileInstaller sun.hotspot.WhiteBox ! * sun.hotspot.WhiteBox$WhiteBoxPermission * @run main/othervm -Xbootclasspath/a:. -Xmn8m -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI KeepAliveClass */ import java.lang.ref.SoftReference; ! import sun.hotspot.WhiteBox; /** * Test that verifies that classes are not unloaded when specific types of references are kept to them. */ public class KeepAliveClass { --- 22,42 ---- */ /* * @test KeepAliveClass * @summary This test case uses a java.lang.Class instance to keep a class alive. ! * @library /testlibrary /../../test/lib /runtime/testlibrary * @library classes * @build KeepAliveClass test.Empty * @build ClassUnloadCommon ! * @run main ClassFileInstaller jdk.testlib.WhiteBox ! * jdk.testlib.WhiteBox$WhiteBoxPermission * @run main/othervm -Xbootclasspath/a:. -Xmn8m -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI KeepAliveClass */ import java.lang.ref.SoftReference; ! import jdk.testlib.WhiteBox; /** * Test that verifies that classes are not unloaded when specific types of references are kept to them. */ public class KeepAliveClass {
test/runtime/ClassUnload/KeepAliveClass.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File