From 289741c288f88a8df223737aba2d146ea1326413 Mon Sep 17 00:00:00 2001 From: bgopularam Date: Thu, 22 Feb 2018 21:28:07 -0800 Subject: [PATCH] 8068778: [TESTBUG] CompressedClassSpaceSizeInJmapHeap.java fails if SA not available Reviewed-by: coleenp, sla --- test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java b/test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java index 8152a9eb1..0ca0878a6 100644 --- a/test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java +++ b/test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java @@ -37,6 +37,11 @@ import java.util.List; 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") -- GitLab