test/runtime/ClassUnload/KeepAliveClass.java

Print this page
rev 6415 : [mq]: 8011397.WhiteBoxPermission

*** 1,7 **** /* ! * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 26,37 **** * @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 ! * @run main/othervm -Xbootclasspath/a:. -Xmn8m -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI KeepAliveClass */ import java.lang.ref.SoftReference; import sun.hotspot.WhiteBox; --- 26,36 ---- * @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/othervm/bootclasspath -Xmn8m -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI KeepAliveClass */ import java.lang.ref.SoftReference; import sun.hotspot.WhiteBox;