< prev index next >
test/compiler/codecache/CheckSegmentedCodeCache.java
Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke
*** 19,43 ****
* 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.*;
- import sun.hotspot.WhiteBox;
-
/*
* @test CheckSegmentedCodeCache
* @bug 8015774
* @library /testlibrary /test/lib
- * @summary "Checks VM options related to the segmented code cache"
* @modules java.base/jdk.internal.misc
* java.management
! * @build CheckSegmentedCodeCache
! * @run main ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission
! * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI CheckSegmentedCodeCache
*/
public class CheckSegmentedCodeCache {
private static final WhiteBox WHITE_BOX = WhiteBox.getWhiteBox();
// Code heap names
private static final String NON_METHOD = "CodeHeap 'non-nmethods'";
private static final String PROFILED = "CodeHeap 'profiled nmethods'";
--- 19,51 ----
* 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 CheckSegmentedCodeCache
* @bug 8015774
+ * @summary Checks VM options related to the segmented code cache
* @library /testlibrary /test/lib
* @modules java.base/jdk.internal.misc
* java.management
! *
! * @build compiler.codecache.CheckSegmentedCodeCache
! * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission
! * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
! * -XX:+WhiteBoxAPI
! * compiler.codecache.CheckSegmentedCodeCache
*/
+
+ package compiler.codecache;
+
+ import jdk.test.lib.OutputAnalyzer;
+ import jdk.test.lib.Platform;
+ import jdk.test.lib.ProcessTools;
+ import sun.hotspot.WhiteBox;
+
public class CheckSegmentedCodeCache {
private static final WhiteBox WHITE_BOX = WhiteBox.getWhiteBox();
// Code heap names
private static final String NON_METHOD = "CodeHeap 'non-nmethods'";
private static final String PROFILED = "CodeHeap 'profiled nmethods'";
< prev index next >