test/gc/g1/TestRegionAlignment.java

Print this page

        

*** 22,31 **** --- 22,32 ---- */ /* * @test TestRegionAlignment.java * @bug 8013791 + * @requires vm.gc=="G1" | vm.gc=="null" * @summary Make sure that G1 ergonomics pick a heap size that is aligned with the region size * @run main/othervm -XX:+UseG1GC -XX:G1HeapRegionSize=32m -XX:MaxRAM=555m TestRegionAlignment * * When G1 ergonomically picks a maximum heap size it must be aligned to the region size. * This test tries to get the VM to pick a small and unaligned heap size (by using MaxRAM=555) and a