# HG changeset patch # User goetz # Date 1421050566 -3600 # Node ID 0fc2c46098403f42024e64e243bbb09f75f59a89 # Parent d4b650e48a8ffbbaf5c8893d12a76a37393647c1 8068778: [TESTBUG] CompressedClassSpaceSizeInJmapHeap.java fails if SA not available Reviewed-by: coleenp, sla diff -r d4b650e48a8f -r 0fc2c4609840 hotspot/test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java --- 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());