4602N/A/*
4602N/A * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
4602N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4602N/A *
4602N/A * This code is free software; you can redistribute it and/or modify it
4602N/A * under the terms of the GNU General Public License version 2 only, as
4602N/A * published by the Free Software Foundation.
4602N/A *
4602N/A * This code is distributed in the hope that it will be useful, but WITHOUT
4602N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4602N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4602N/A * version 2 for more details (a copy is included in the LICENSE file that
4602N/A * accompanied this code).
4602N/A *
4602N/A * You should have received a copy of the GNU General Public License version
4602N/A * 2 along with this work; if not, write to the Free Software Foundation,
4602N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4602N/A *
4602N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4602N/A * or visit www.oracle.com if you need additional information or have any
4602N/A * questions.
4602N/A */
4602N/A
4602N/A/*
4602N/A * @test TestRegionAlignment.java
4602N/A * @bug 8013791
4602N/A * @summary Make sure that G1 ergonomics pick a heap size that is aligned with the region size
4602N/A * @run main/othervm -XX:+UseG1GC -XX:G1HeapRegionSize=32m -XX:MaxRAM=555m TestRegionAlignment
4602N/A *
4602N/A * When G1 ergonomically picks a maximum heap size it must be aligned to the region size.
4602N/A * This test tries to get the VM to pick a small and unaligned heap size (by using MaxRAM=555) and a
4602N/A * large region size (by using -XX:G1HeapRegionSize=32m). This will fail without the fix for 8013791.
4602N/A */
4602N/Apublic class TestRegionAlignment {
4602N/A public static void main(String[] args) { }
4602N/A}