8068778: [TESTBUG] CompressedClassSpaceSizeInJmapHeap.java fails if SA not available
Reviewed-by: coleenp, sla
--- a/hotspot/test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java Fri Jan 23 11:44:21 2015 -0800
+++ b/hotspot/test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java Mon Jan 12 09:16:06 2015 +0100
@@ -41,6 +41,10 @@
// 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());