< prev index next >

test/gc/arguments/TestTargetSurvivorRatioFlag.java

Print this page

        

*** 25,54 **** * @test TestTargetSurvivorRatioFlag * @key gc * @summary Verify that option TargetSurvivorRatio affects survivor space occupancy after minor GC. * @requires (vm.opt.ExplicitGCInvokesConcurrent == null) | (vm.opt.ExplicitGCInvokesConcurrent == false) * @requires (vm.opt.UseJVMCICompiler == null) | (vm.opt.UseJVMCICompiler == false) ! * @library /testlibrary /test/lib * @modules java.base/jdk.internal.misc * java.management ! * @build TestTargetSurvivorRatioFlag * @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver TestTargetSurvivorRatioFlag */ - import jdk.test.lib.AllocationHelper; import java.lang.management.GarbageCollectorMXBean; import java.util.Arrays; import java.util.Collections; import java.util.LinkedList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; - import jdk.test.lib.HeapRegionUsageTool; import jdk.internal.misc.Unsafe; ! import jdk.test.lib.OutputAnalyzer; ! import jdk.test.lib.ProcessTools; import jdk.test.lib.Utils; import sun.hotspot.WhiteBox; /* In order to test that TargetSurvivorRatio affects survivor space occupancy * we setup fixed MaxTenuringThreshold and then verifying that if size of allocated --- 25,52 ---- * @test TestTargetSurvivorRatioFlag * @key gc * @summary Verify that option TargetSurvivorRatio affects survivor space occupancy after minor GC. * @requires (vm.opt.ExplicitGCInvokesConcurrent == null) | (vm.opt.ExplicitGCInvokesConcurrent == false) * @requires (vm.opt.UseJVMCICompiler == null) | (vm.opt.UseJVMCICompiler == false) ! * @library /test/lib * @modules java.base/jdk.internal.misc * java.management ! * @build sun.hotspot.WhiteBox * @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver TestTargetSurvivorRatioFlag */ import java.lang.management.GarbageCollectorMXBean; import java.util.Arrays; import java.util.Collections; import java.util.LinkedList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import jdk.internal.misc.Unsafe; ! import jdk.test.lib.process.OutputAnalyzer; ! import jdk.test.lib.process.ProcessTools; import jdk.test.lib.Utils; import sun.hotspot.WhiteBox; /* In order to test that TargetSurvivorRatio affects survivor space occupancy * we setup fixed MaxTenuringThreshold and then verifying that if size of allocated
< prev index next >