hotspot/test/runtime/ClassUnload/KeepAliveClass.java
changeset 25958 8dc85547d6d6
parent 17311 6ba3841cb7f9
child 28190 5a6b07edeb21
equal deleted inserted replaced
25944:c8aa7a0bf7d0 25958:8dc85547d6d6
     1 /*
     1 /*
     2  * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    27  * @library /testlibrary /testlibrary/whitebox /runtime/testlibrary
    27  * @library /testlibrary /testlibrary/whitebox /runtime/testlibrary
    28  * @library classes
    28  * @library classes
    29  * @build KeepAliveClass test.Empty
    29  * @build KeepAliveClass test.Empty
    30  * @build ClassUnloadCommon
    30  * @build ClassUnloadCommon
    31  * @run main ClassFileInstaller sun.hotspot.WhiteBox
    31  * @run main ClassFileInstaller sun.hotspot.WhiteBox
       
    32  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
    32  * @run main/othervm -Xbootclasspath/a:. -Xmn8m -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI KeepAliveClass
    33  * @run main/othervm -Xbootclasspath/a:. -Xmn8m -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI KeepAliveClass
    33  */
    34  */
    34 
    35 
    35 import java.lang.ref.SoftReference;
    36 import java.lang.ref.SoftReference;
    36 import sun.hotspot.WhiteBox;
    37 import sun.hotspot.WhiteBox;