< prev index next >

test/hotspot/jtreg/gc/class_unloading/TestClassUnloadingDisabled.java

Print this page




  13  * accompanied this code).
  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 package gc.class_unloading;
  25 
  26 /*
  27  * @test
  28  * @key gc
  29  * @bug 8114823
  30  * @requires vm.gc == null
  31  * @requires vm.opt.ExplicitGCInvokesConcurrent != true
  32  * @requires vm.opt.ClassUnloading != true

  33  * @library /test/lib
  34  * @modules java.base/jdk.internal.misc
  35  *          java.management
  36  * @build sun.hotspot.WhiteBox
  37  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  38  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  39  *
  40  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  41  *                   -XX:-ClassUnloading -XX:+UseG1GC gc.class_unloading.TestClassUnloadingDisabled
  42  *
  43  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  44  *                   -XX:-ClassUnloading -XX:+UseSerialGC gc.class_unloading.TestClassUnloadingDisabled
  45  *
  46  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  47  *                   -XX:-ClassUnloading -XX:+UseParallelGC gc.class_unloading.TestClassUnloadingDisabled
  48  *
  49  */
  50 
  51 /*
  52  * @test
  53  * @key gc
  54  * @bug 8114823
  55  * @comment Graal does not support CMS
  56  * @requires vm.gc=="null" & !vm.graal.enabled
  57  * @requires vm.opt.ExplicitGCInvokesConcurrent != true
  58  * @requires vm.opt.ClassUnloading != true
  59  * @library /test/lib
  60  * @modules java.base/jdk.internal.misc
  61  *          java.management
  62  * @build sun.hotspot.WhiteBox
  63  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  64  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  65  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  66  *                   -XX:-ClassUnloading -XX:+UseConcMarkSweepGC gc.class_unloading.TestClassUnloadingDisabled
  67  */
  68 
  69 /*
  70  * @test TestClassUnloadingDisabledShenandoah
  71  * @key gc
  72  * @bug 8114823
  73  * @comment Graal does not support Shenandoah
  74  * @requires vm.gc.Shenandoah & !vm.graal.enabled
  75  * @requires vm.opt.ExplicitGCInvokesConcurrent != true
  76  * @requires vm.opt.ClassUnloading != true




  13  * accompanied this code).
  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 package gc.class_unloading;
  25 
  26 /*
  27  * @test
  28  * @key gc
  29  * @bug 8114823
  30  * @requires vm.gc == null
  31  * @requires vm.opt.ExplicitGCInvokesConcurrent != true
  32  * @requires vm.opt.ClassUnloading != true
  33  * @requires vm.gc.Serial & vm.gc.Parallel & vm.gc.G1
  34  * @library /test/lib
  35  * @modules java.base/jdk.internal.misc
  36  *          java.management
  37  * @build sun.hotspot.WhiteBox
  38  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  39  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  40  *
  41  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  42  *                   -XX:-ClassUnloading -XX:+UseG1GC gc.class_unloading.TestClassUnloadingDisabled
  43  *
  44  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  45  *                   -XX:-ClassUnloading -XX:+UseSerialGC gc.class_unloading.TestClassUnloadingDisabled
  46  *
  47  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  48  *                   -XX:-ClassUnloading -XX:+UseParallelGC gc.class_unloading.TestClassUnloadingDisabled
  49  *
  50  */
  51 
  52 /*
  53  * @test
  54  * @key gc
  55  * @bug 8114823
  56  * @comment Graal does not support CMS
  57  * @requires vm.gc.ConcMarkSweep & !vm.graal.enabled
  58  * @requires vm.opt.ExplicitGCInvokesConcurrent != true
  59  * @requires vm.opt.ClassUnloading != true
  60  * @library /test/lib
  61  * @modules java.base/jdk.internal.misc
  62  *          java.management
  63  * @build sun.hotspot.WhiteBox
  64  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  65  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  66  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  67  *                   -XX:-ClassUnloading -XX:+UseConcMarkSweepGC gc.class_unloading.TestClassUnloadingDisabled
  68  */
  69 
  70 /*
  71  * @test TestClassUnloadingDisabledShenandoah
  72  * @key gc
  73  * @bug 8114823
  74  * @comment Graal does not support Shenandoah
  75  * @requires vm.gc.Shenandoah & !vm.graal.enabled
  76  * @requires vm.opt.ExplicitGCInvokesConcurrent != true
  77  * @requires vm.opt.ClassUnloading != true


< prev index next >