changeset 8619:1252eaaa2c8b

8068778: [TESTBUG] CompressedClassSpaceSizeInJmapHeap.java fails if SA not available Reviewed-by: coleenp, sla
author bgopularam
date Thu, 22 Feb 2018 21:28:07 -0800
parents 9ce702ef6376
children 56123fdca84a
files test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java	Tue Feb 20 12:55:25 2018 -0800
+++ b/test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java	Thu Feb 22 21:28:07 2018 -0800
@@ -37,6 +37,11 @@
 
 public class CompressedClassSpaceSizeInJmapHeap {
     public static void main(String[] args) throws Exception {
+        if (!Platform.shouldSAAttach()) {
+            System.out.println("SA attach not expected to work - test skipped.");
+            return;
+        }
+
         String pid = Integer.toString(ProcessTools.getProcessId());
 
         JDKToolLauncher jmap = JDKToolLauncher.create("jmap")