< prev index next >

test/hotspot/jtreg/vmTestbase/metaspace/staticReferences/StaticReferences.java

Print this page
rev 59899 : [mq]: 8249033


  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @key randomness
  27  * @modules java.base/jdk.internal.misc:+open
  28  *
  29  * @summary converted from VM Testbase metaspace/staticReferences.
  30  * VM Testbase keywords: [nonconcurrent, javac, no_cds]
  31  *
  32  * @requires vm.opt.final.ClassUnloading
  33  * @library /vmTestbase /test/lib
  34  * @run driver jdk.test.lib.FileInstaller . .
  35  * @build sun.hotspot.WhiteBox
  36  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  37  * @run main/othervm
  38  *      -Xmx800m
  39  *      -Xbootclasspath/a:.
  40  *      -XX:+UnlockDiagnosticVMOptions
  41  *      -XX:+WhiteBoxAPI
  42  *      metaspace.staticReferences.StaticReferences
  43  */
  44 
  45 package metaspace.staticReferences;
  46 
  47 import java.lang.ref.WeakReference;
  48 import java.lang.ref.Reference;
  49 import java.lang.reflect.Field;
  50 import java.lang.reflect.Modifier;
  51 import java.util.HashMap;
  52 import java.util.LinkedList;
  53 import java.util.List;
  54 import java.util.Map;




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @key randomness
  27  * @modules java.base/jdk.internal.misc:+open
  28  *
  29  * @summary converted from VM Testbase metaspace/staticReferences.
  30  * VM Testbase keywords: [nonconcurrent, javac, no_cds]
  31  *
  32  * @requires vm.opt.final.ClassUnloading
  33  * @library /vmTestbase /test/lib

  34  * @build sun.hotspot.WhiteBox
  35  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  36  * @run main/othervm
  37  *      -Xmx800m
  38  *      -Xbootclasspath/a:.
  39  *      -XX:+UnlockDiagnosticVMOptions
  40  *      -XX:+WhiteBoxAPI
  41  *      metaspace.staticReferences.StaticReferences
  42  */
  43 
  44 package metaspace.staticReferences;
  45 
  46 import java.lang.ref.WeakReference;
  47 import java.lang.ref.Reference;
  48 import java.lang.reflect.Field;
  49 import java.lang.reflect.Modifier;
  50 import java.util.HashMap;
  51 import java.util.LinkedList;
  52 import java.util.List;
  53 import java.util.Map;


< prev index next >