equal
deleted
inserted
replaced
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", |