changeset 7761:031ed3504352

8068778: [TESTBUG] CompressedClassSpaceSizeInJmapHeap.java fails if SA not available Reviewed-by: coleenp, sla
author goetz
date Mon, 12 Jan 2015 09:16:06 +0100
parents 5a8fe6466866
children 4d3f1d99d12e
files test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java	Fri Jan 23 11:44:21 2015 -0800
+++ b/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());