< prev index next >

test/compiler/codecache/jmx/UsageThresholdIncreasedTest.java

Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke

*** 19,47 **** * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ - import jdk.test.lib.Asserts; - import java.lang.management.MemoryPoolMXBean; - import sun.hotspot.code.BlobType; - /* * @test UsageThresholdIncreasedTest ! * @library /testlibrary /test/lib * @modules java.base/jdk.internal.misc * java.management ! * @build UsageThresholdIncreasedTest ! * @run main ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions ! * -XX:+WhiteBoxAPI -XX:+SegmentedCodeCache -XX:-UseCodeCacheFlushing ! * -XX:-MethodFlushing -XX:CompileCommand=compileonly,null::* ! * UsageThresholdIncreasedTest ! * @summary verifying that threshold hasn't been hit after allocation smaller ! * than threshold value and that threshold value can be changed */ public class UsageThresholdIncreasedTest { private static final int ALLOCATION_STEP = 5; private static final long THRESHOLD_STEP = ALLOCATION_STEP * CodeCacheUtils.MIN_ALLOCATION; --- 19,57 ---- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * @test UsageThresholdIncreasedTest ! * @summary verifying that threshold hasn't been hit after allocation smaller ! * than threshold value and that threshold value can be changed ! * @library /testlibrary /test/lib / * @modules java.base/jdk.internal.misc * java.management ! * ! * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission + * @build compiler.codecache.jmx.UsageThresholdIncreasedTest * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions ! * -XX:+WhiteBoxAPI -XX:-UseCodeCacheFlushing -XX:-MethodFlushing ! * -XX:CompileCommand=compileonly,null::* ! * -XX:-SegmentedCodeCache ! * compiler.codecache.jmx.UsageThresholdIncreasedTest ! * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions ! * -XX:+WhiteBoxAPI -XX:-UseCodeCacheFlushing -XX:-MethodFlushing ! * -XX:CompileCommand=compileonly,null::* ! * -XX:+SegmentedCodeCache ! * compiler.codecache.jmx.UsageThresholdIncreasedTest */ + + package compiler.codecache.jmx; + + import sun.hotspot.code.BlobType; + + import java.lang.management.MemoryPoolMXBean; + public class UsageThresholdIncreasedTest { private static final int ALLOCATION_STEP = 5; private static final long THRESHOLD_STEP = ALLOCATION_STEP * CodeCacheUtils.MIN_ALLOCATION;
< prev index next >