hotspot/test/gc/arguments/TestCompressedClassFlags.java
changeset 29678 dd2f3932c21e
parent 19979 ebe1dbb6e1aa
child 30604 b8d532cb6420
equal deleted inserted replaced
29586:889895365eb9 29678:dd2f3932c21e
     1 /*
     1 /*
     2  * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    27  * @test
    27  * @test
    28  * @bug 8015107
    28  * @bug 8015107
    29  * @summary Tests that VM prints a warning when -XX:CompressedClassSpaceSize
    29  * @summary Tests that VM prints a warning when -XX:CompressedClassSpaceSize
    30  *          is used together with -XX:-UseCompressedClassPointers
    30  *          is used together with -XX:-UseCompressedClassPointers
    31  * @library /testlibrary
    31  * @library /testlibrary
       
    32  * @modules java.base/sun.misc
       
    33  *          java.management
    32  */
    34  */
    33 public class TestCompressedClassFlags {
    35 public class TestCompressedClassFlags {
    34     public static void main(String[] args) throws Exception {
    36     public static void main(String[] args) throws Exception {
    35         if (Platform.is64bit()) {
    37         if (Platform.is64bit()) {
    36             OutputAnalyzer output = runJava("-XX:CompressedClassSpaceSize=1g",
    38             OutputAnalyzer output = runJava("-XX:CompressedClassSpaceSize=1g",