8027924: gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java fails with warning

Reviewed-by: jmasa, tschatzl
This commit is contained in:
Erik Helin 2014-03-26 16:33:13 +01:00
parent 74235d9630
commit 98d8c51389

View File

@ -26,7 +26,7 @@
* @bug 8004924
* @summary Checks that jmap -heap contains the flag CompressedClassSpaceSize
* @library /testlibrary
* @run main/othervm -XX:CompressedClassSpaceSize=50m CompressedClassSpaceSizeInJmapHeap
* @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:CompressedClassSpaceSize=50m CompressedClassSpaceSizeInJmapHeap
*/
import com.oracle.java.testlibrary.*;
@ -37,6 +37,11 @@ import java.util.List;
public class CompressedClassSpaceSizeInJmapHeap {
public static void main(String[] args) throws Exception {
if (!Platform.is64bit()) {
// Compressed Class Space is only available on 64-bit JVMs
return;
}
String pid = Integer.toString(ProcessTools.getProcessId());
JDKToolLauncher jmap = JDKToolLauncher.create("jmap")