diff --git a/test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java b/test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java index 8152a9eb1ca87855ad0af761c306b87e252e9d37..0ca0878a630a2d7c1ba16129d2020cceeef43e08 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")