2013-09-16 08:20:45 +00:00
|
|
|
/*
|
2018-06-08 00:38:34 +00:00
|
|
|
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
|
2013-09-16 08:20:45 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
*
|
|
|
|
* This code is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License version 2 only, as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
* version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
* accompanied this code).
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License version
|
|
|
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*
|
|
|
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
* or visit www.oracle.com if you need additional information or have any
|
|
|
|
* questions.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @test TestAlignmentToUseLargePages
|
2018-02-08 16:38:42 +00:00
|
|
|
* @key gc regression
|
2013-09-16 08:20:45 +00:00
|
|
|
* @summary All parallel GC variants may use large pages without the requirement that the
|
|
|
|
* heap alignment is large page aligned. Other collectors also need to start up with odd sized heaps.
|
|
|
|
* @bug 8024396
|
2014-11-19 14:43:19 +00:00
|
|
|
* @requires vm.gc=="null"
|
2016-08-25 10:12:09 +00:00
|
|
|
* @run main/othervm -Xms71M -Xmx91M -XX:+UseParallelGC -XX:-UseParallelOldGC -XX:+UseLargePages TestAlignmentToUseLargePages
|
|
|
|
* @run main/othervm -Xms71M -Xmx91M -XX:+UseParallelGC -XX:-UseParallelOldGC -XX:-UseLargePages TestAlignmentToUseLargePages
|
|
|
|
* @run main/othervm -Xms71M -Xmx91M -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:+UseLargePages TestAlignmentToUseLargePages
|
|
|
|
* @run main/othervm -Xms71M -Xmx91M -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:-UseLargePages TestAlignmentToUseLargePages
|
|
|
|
* @run main/othervm -Xms71M -Xmx91M -XX:+UseSerialGC -XX:+UseLargePages TestAlignmentToUseLargePages
|
|
|
|
* @run main/othervm -Xms71M -Xmx91M -XX:+UseSerialGC -XX:-UseLargePages TestAlignmentToUseLargePages
|
|
|
|
* @run main/othervm -Xms71M -Xmx91M -XX:+UseG1GC -XX:+UseLargePages TestAlignmentToUseLargePages
|
|
|
|
* @run main/othervm -Xms71M -Xmx91M -XX:+UseG1GC -XX:-UseLargePages TestAlignmentToUseLargePages
|
2013-09-16 08:20:45 +00:00
|
|
|
*/
|
|
|
|
|
2018-06-08 00:38:34 +00:00
|
|
|
/**
|
|
|
|
* @test TestAlignmentToUseLargePagesCMS
|
|
|
|
* @key gc regression
|
|
|
|
* @bug 8024396
|
|
|
|
* @comment Graal does not support CMS
|
|
|
|
* @requires vm.gc=="null" & !vm.graal.enabled
|
|
|
|
* @run main/othervm -Xms71M -Xmx91M -XX:+UseConcMarkSweepGC -XX:+UseLargePages TestAlignmentToUseLargePages
|
|
|
|
* @run main/othervm -Xms71M -Xmx91M -XX:+UseConcMarkSweepGC -XX:-UseLargePages TestAlignmentToUseLargePages
|
|
|
|
*/
|
|
|
|
|
2018-12-10 14:47:44 +00:00
|
|
|
/**
|
|
|
|
* @test TestAlignmentToUseLargePagesShenandoah
|
|
|
|
* @key gc
|
|
|
|
* @bug 8024396
|
|
|
|
* @comment Graal does not support Shenandoah
|
|
|
|
* @requires vm.gc.Shenandoah & !vm.graal.enabled
|
|
|
|
* @run main/othervm -Xms71M -Xmx91M -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+UseLargePages TestAlignmentToUseLargePages
|
|
|
|
* @run main/othervm -Xms71M -Xmx91M -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:-UseLargePages TestAlignmentToUseLargePages
|
|
|
|
*/
|
|
|
|
|
2013-09-16 08:20:45 +00:00
|
|
|
public class TestAlignmentToUseLargePages {
|
|
|
|
public static void main(String args[]) throws Exception {
|
|
|
|
// nothing to do
|
|
|
|
}
|
|
|
|
}
|