< prev index next >
test/compiler/codecache/jmx/UsageThresholdNotExceededTest.java
Print this page
*** 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 UsageThresholdNotExceededTest
! * @library /testlibrary /test/lib
* @modules java.base/jdk.internal.misc
* java.management
! * @build UsageThresholdNotExceededTest
! * @run main ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission
! * @run main/othervm -Xbootclasspath/a:. -XX:-UseCodeCacheFlushing
! * -XX:-MethodFlushing -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
! * -XX:+SegmentedCodeCache -XX:CompileCommand=compileonly,null::*
! * UsageThresholdNotExceededTest
! * @summary verifying that usage threshold not exceeded while allocating less
! * than usage threshold
*/
public class UsageThresholdNotExceededTest {
private final BlobType btype;
public UsageThresholdNotExceededTest(BlobType btype) {
--- 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 UsageThresholdNotExceededTest
! * @summary verifying that usage threshold not exceeded while allocating less
! * than usage threshold
! * @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.UsageThresholdNotExceededTest
! * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
! * -XX:+WhiteBoxAPI -XX:-UseCodeCacheFlushing -XX:-MethodFlushing
! * -XX:CompileCommand=compileonly,null::*
! * -XX:+SegmentedCodeCache
! * compiler.codecache.jmx.UsageThresholdNotExceededTest
! * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
! * -XX:+WhiteBoxAPI -XX:-UseCodeCacheFlushing -XX:-MethodFlushing
! * -XX:CompileCommand=compileonly,null::*
! * -XX:-SegmentedCodeCache
! * compiler.codecache.jmx.UsageThresholdNotExceededTest
*/
+
+ package compiler.codecache.jmx;
+
+ import sun.hotspot.code.BlobType;
+
+ import java.lang.management.MemoryPoolMXBean;
+
public class UsageThresholdNotExceededTest {
private final BlobType btype;
public UsageThresholdNotExceededTest(BlobType btype) {
< prev index next >