39 * @test gc.g1.humongousObjects.TestHumongousClassLoader |
39 * @test gc.g1.humongousObjects.TestHumongousClassLoader |
40 * @summary Checks that unreachable classes and unreachable humongous class loader are unloaded after GC |
40 * @summary Checks that unreachable classes and unreachable humongous class loader are unloaded after GC |
41 * @requires vm.gc.G1 |
41 * @requires vm.gc.G1 |
42 * @requires vm.opt.G1HeapRegionSize == "null" | vm.opt.G1HeapRegionSize == "1M" |
42 * @requires vm.opt.G1HeapRegionSize == "null" | vm.opt.G1HeapRegionSize == "1M" |
43 * @requires vm.opt.ExplicitGCInvokesConcurrent != true |
43 * @requires vm.opt.ExplicitGCInvokesConcurrent != true |
44 * @library /testlibrary /test/lib / |
44 * @library /test/lib / |
45 * @modules java.base/jdk.internal.misc |
45 * @modules java.base/jdk.internal.misc |
46 * @modules java.management |
46 * @modules java.management |
47 * @build sun.hotspot.WhiteBox |
47 * @build sun.hotspot.WhiteBox |
48 * gc.testlibrary.Helpers |
|
49 * gc.g1.humongousObjects.G1SampleClass |
|
50 * gc.g1.humongousObjects.ClassLoaderGenerator |
|
51 * gc.g1.humongousObjects.TestHumongousClassLoader |
|
52 * |
|
53 * @run driver ClassFileInstaller sun.hotspot.WhiteBox |
48 * @run driver ClassFileInstaller sun.hotspot.WhiteBox |
54 * sun.hotspot.WhiteBox$WhiteBoxPermission |
49 * sun.hotspot.WhiteBox$WhiteBoxPermission |
55 * |
50 * |
56 * @run main/othervm/timeout=240 -Xms256M -Xmx256M -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. |
51 * @run main/othervm/timeout=240 -Xms256M -Xmx256M -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. |
57 * gc.g1.humongousObjects.ClassLoaderGenerator 1 |
52 * gc.g1.humongousObjects.ClassLoaderGenerator 1 |