equal
deleted
inserted
replaced
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") |