提交 289741c2 编写于 作者: B bgopularam

8068778: [TESTBUG] CompressedClassSpaceSizeInJmapHeap.java fails if SA not available

Reviewed-by: coleenp, sla
上级 f5ccc537
...@@ -37,6 +37,11 @@ import java.util.List; ...@@ -37,6 +37,11 @@ import java.util.List;
public class CompressedClassSpaceSizeInJmapHeap { public class CompressedClassSpaceSizeInJmapHeap {
public static void main(String[] args) throws Exception { 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()); String pid = Integer.toString(ProcessTools.getProcessId());
JDKToolLauncher jmap = JDKToolLauncher.create("jmap") JDKToolLauncher jmap = JDKToolLauncher.create("jmap")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册