mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-22 21:59:52 +00:00
8027924: gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java fails with warning
Reviewed-by: jmasa, tschatzl
This commit is contained in:
parent
74235d9630
commit
98d8c51389
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user