test/gc/g1/TestRegionAlignment.java

changeset 7785
f967da7f0c3c
parent 0
f90c822e73f8
equal deleted inserted replaced
7784:974d7f3df726 7785:f967da7f0c3c
1 /* 1 /*
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2013, 2014, 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.
22 */ 22 */
23 23
24 /* 24 /*
25 * @test TestRegionAlignment.java 25 * @test TestRegionAlignment.java
26 * @bug 8013791 26 * @bug 8013791
27 * @requires vm.gc=="G1" | vm.gc=="null"
27 * @summary Make sure that G1 ergonomics pick a heap size that is aligned with the region size 28 * @summary Make sure that G1 ergonomics pick a heap size that is aligned with the region size
28 * @run main/othervm -XX:+UseG1GC -XX:G1HeapRegionSize=32m -XX:MaxRAM=555m TestRegionAlignment 29 * @run main/othervm -XX:+UseG1GC -XX:G1HeapRegionSize=32m -XX:MaxRAM=555m TestRegionAlignment
29 * 30 *
30 * When G1 ergonomically picks a maximum heap size it must be aligned to the region size. 31 * When G1 ergonomically picks a maximum heap size it must be aligned to the region size.
31 * This test tries to get the VM to pick a small and unaligned heap size (by using MaxRAM=555) and a 32 * This test tries to get the VM to pick a small and unaligned heap size (by using MaxRAM=555) and a

mercurial