8068778: [TESTBUG] CompressedClassSpaceSizeInJmapHeap.java fails if SA not available
authorgoetz
Mon, 12 Jan 2015 09:16:06 +0100
changeset 28733 0fc2c4609840
parent 28732 d4b650e48a8f
child 28734 a7ef74a8eca2
8068778: [TESTBUG] CompressedClassSpaceSizeInJmapHeap.java fails if SA not available Reviewed-by: coleenp, sla
hotspot/test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java
--- a/hotspot/test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java	Fri Jan 23 11:44:21 2015 -0800
+++ b/hotspot/test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java	Mon Jan 12 09:16:06 2015 +0100
@@ -41,6 +41,10 @@
             // Compressed Class Space is only available on 64-bit JVMs
             return;
         }
+        if (!Platform.shouldSAAttach()) {
+            System.out.println("SA attach not expected to work - test skipped.");
+            return;
+        }
 
         String pid = Integer.toString(ProcessTools.getProcessId());