test/compiler/whitebox/GetCodeHeapEntriesTest.java

Print this page




  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 import java.util.Arrays;
  26 import java.util.EnumSet;
  27 
  28 import sun.hotspot.WhiteBox;
  29 import sun.hotspot.code.CodeBlob;
  30 import sun.hotspot.code.BlobType;
  31 import com.oracle.java.testlibrary.Asserts;
  32 
  33 /*
  34  * @test GetCodeHeapEntriesTest
  35  * @bug 8059624
  36  * @library /testlibrary /testlibrary/whitebox
  37  * @build GetCodeHeapEntriesTest
  38  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  39  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  40  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
  41  *                   -XX:+WhiteBoxAPI -XX:-SegmentedCodeCache
  42  *                   GetCodeHeapEntriesTest
  43  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
  44  *                   -XX:+WhiteBoxAPI -XX:+SegmentedCodeCache
  45  *                   GetCodeHeapEntriesTest
  46  * @summary testing of WB::getCodeHeapEntries()
  47  */
  48 public class GetCodeHeapEntriesTest {
  49     private static final WhiteBox WHITE_BOX = WhiteBox.getWhiteBox();
  50     private static final int SIZE = 1024;
  51     private static final String DUMMY_NAME = "WB::DummyBlob";
  52     private static EnumSet<BlobType> SEGMENTED_TYPES
  53             = EnumSet.complementOf(EnumSet.of(BlobType.All));
  54 
  55     public static void main(String[] args) {
  56         EnumSet<BlobType> blobTypes = BlobType.getAvailable();




  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 import java.util.Arrays;
  26 import java.util.EnumSet;
  27 
  28 import sun.hotspot.WhiteBox;
  29 import sun.hotspot.code.CodeBlob;
  30 import sun.hotspot.code.BlobType;
  31 import com.oracle.java.testlibrary.Asserts;
  32 
  33 /*
  34  * @test GetCodeHeapEntriesTest
  35  * @bug 8059624
  36  * @library /testlibrary /../../test/lib
  37  * @build GetCodeHeapEntriesTest
  38  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  39  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  40  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
  41  *                   -XX:+WhiteBoxAPI -XX:-SegmentedCodeCache
  42  *                   GetCodeHeapEntriesTest
  43  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
  44  *                   -XX:+WhiteBoxAPI -XX:+SegmentedCodeCache
  45  *                   GetCodeHeapEntriesTest
  46  * @summary testing of WB::getCodeHeapEntries()
  47  */
  48 public class GetCodeHeapEntriesTest {
  49     private static final WhiteBox WHITE_BOX = WhiteBox.getWhiteBox();
  50     private static final int SIZE = 1024;
  51     private static final String DUMMY_NAME = "WB::DummyBlob";
  52     private static EnumSet<BlobType> SEGMENTED_TYPES
  53             = EnumSet.complementOf(EnumSet.of(BlobType.All));
  54 
  55     public static void main(String[] args) {
  56         EnumSet<BlobType> blobTypes = BlobType.getAvailable();