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

Reviewed-by: coleenp, sla
This commit is contained in:
Goetz Lindenmaier 2015-01-12 09:16:06 +01:00
parent 2c2593b757
commit 2ffd52f306

View File

@ -41,6 +41,10 @@ public class CompressedClassSpaceSizeInJmapHeap {
// 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());