Thu, 22 Feb 2018 21:28:07 -0800
8068778: [TESTBUG] CompressedClassSpaceSizeInJmapHeap.java fails if SA not available
Reviewed-by: coleenp, sla
test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java | file | annotate | diff | comparison | revisions |
1.1 --- a/test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java Thu Feb 08 19:33:31 2018 +0000 1.2 +++ b/test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java Thu Feb 22 21:28:07 2018 -0800 1.3 @@ -37,6 +37,11 @@ 1.4 1.5 public class CompressedClassSpaceSizeInJmapHeap { 1.6 public static void main(String[] args) throws Exception { 1.7 + if (!Platform.shouldSAAttach()) { 1.8 + System.out.println("SA attach not expected to work - test skipped."); 1.9 + return; 1.10 + } 1.11 + 1.12 String pid = Integer.toString(ProcessTools.getProcessId()); 1.13 1.14 JDKToolLauncher jmap = JDKToolLauncher.create("jmap")