hotspot/test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java
changeset 28733 0fc2c4609840
parent 23509 08e26f93c9a5
child 29200 5e480434bef4
equal deleted inserted replaced
28732:d4b650e48a8f 28733:0fc2c4609840
    39     public static void main(String[] args) throws Exception {
    39     public static void main(String[] args) throws Exception {
    40         if (!Platform.is64bit()) {
    40         if (!Platform.is64bit()) {
    41             // Compressed Class Space is only available on 64-bit JVMs
    41             // Compressed Class Space is only available on 64-bit JVMs
    42             return;
    42             return;
    43         }
    43         }
       
    44         if (!Platform.shouldSAAttach()) {
       
    45             System.out.println("SA attach not expected to work - test skipped.");
       
    46             return;
       
    47         }
    44 
    48 
    45         String pid = Integer.toString(ProcessTools.getProcessId());
    49         String pid = Integer.toString(ProcessTools.getProcessId());
    46 
    50 
    47         JDKToolLauncher jmap = JDKToolLauncher.create("jmap")
    51         JDKToolLauncher jmap = JDKToolLauncher.create("jmap")
    48                                               .addToolArg("-heap")
    52                                               .addToolArg("-heap")