12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 package gc.arguments; 25 26 /* 27 * @test TestMaxNewSize 28 * @key gc 29 * @bug 7057939 30 * @summary Make sure that MaxNewSize always has a useful value after argument 31 * processing. 32 * @requires vm.gc=="null" 33 * @library /test/lib 34 * @modules java.base/jdk.internal.misc 35 * java.management 36 * @run main gc.arguments.TestMaxNewSize -XX:+UseSerialGC 37 * @run main gc.arguments.TestMaxNewSize -XX:+UseParallelGC 38 * @run main gc.arguments.TestMaxNewSize -XX:+UseG1GC 39 * @author thomas.schatzl@oracle.com, jesper.wilhelmsson@oracle.com 40 */ 41 42 /* 43 * @test TestMaxNewSizeCMS 44 * @key gc 45 * @bug 7057939 46 * @comment Graal does not support CMS 47 * @requires vm.gc=="null" & !vm.graal.enabled 48 * @library /test/lib 49 * @modules java.base/jdk.internal.misc 50 * java.management 51 * @run main gc.arguments.TestMaxNewSize -XX:+UseConcMarkSweepGC 52 */ 53 54 import java.util.regex.Matcher; 55 import java.util.regex.Pattern; 56 57 import java.math.BigInteger; 58 59 import java.util.ArrayList; 60 import java.util.Arrays; 61 62 import jdk.test.lib.process.OutputAnalyzer; 63 import jdk.test.lib.process.ProcessTools; 64 65 public class TestMaxNewSize { 66 67 private static void checkMaxNewSize(String[] flags, int heapsize) throws Exception { | 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 package gc.arguments; 25 26 /* 27 * @test TestMaxNewSize 28 * @key gc 29 * @bug 7057939 30 * @summary Make sure that MaxNewSize always has a useful value after argument 31 * processing. 32 * @requires vm.gc.Serial & vm.gc.Parallel & vm.gc.G1 33 * @library /test/lib 34 * @modules java.base/jdk.internal.misc 35 * java.management 36 * @run main gc.arguments.TestMaxNewSize -XX:+UseSerialGC 37 * @run main gc.arguments.TestMaxNewSize -XX:+UseParallelGC 38 * @run main gc.arguments.TestMaxNewSize -XX:+UseG1GC 39 * @author thomas.schatzl@oracle.com, jesper.wilhelmsson@oracle.com 40 */ 41 42 /* 43 * @test TestMaxNewSizeCMS 44 * @key gc 45 * @bug 7057939 46 * @comment Graal does not support CMS 47 * @requires vm.gc.ConcMarkSweep & !vm.graal.enabled 48 * @library /test/lib 49 * @modules java.base/jdk.internal.misc 50 * java.management 51 * @run main gc.arguments.TestMaxNewSize -XX:+UseConcMarkSweepGC 52 */ 53 54 import java.util.regex.Matcher; 55 import java.util.regex.Pattern; 56 57 import java.math.BigInteger; 58 59 import java.util.ArrayList; 60 import java.util.Arrays; 61 62 import jdk.test.lib.process.OutputAnalyzer; 63 import jdk.test.lib.process.ProcessTools; 64 65 public class TestMaxNewSize { 66 67 private static void checkMaxNewSize(String[] flags, int heapsize) throws Exception { |