hotspot/test/gc/arguments/TestSurvivorAlignmentInBytesOption.java
author gziemski
Thu, 18 Jun 2015 14:39:38 -0500
changeset 31371 311143309e73
parent 30604 b8d532cb6420
child 36851 03e2f4d0a421
permissions -rw-r--r--
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments. Summary: Validate the arguments to all JVM command-line flags so as to avoid crashes, and ensure that appropriate error messages are displayed when they are invalid. Reviewed-by: ddmitriev, dholmes, kbarrett, drwhite, brutisso, coleenp
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
     1
/*
29678
dd2f3932c21e 8075586: Add @modules as needed to the open hotspot tests
ykantser
parents: 28204
diff changeset
     2
 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
     4
 *
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
     7
 * published by the Free Software Foundation.
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
     8
 *
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    13
 * accompanied this code).
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    14
 *
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    18
 *
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    21
 * questions.
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    22
 */
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    23
30604
b8d532cb6420 8067013: Rename the com.oracle.java.testlibary package
ykantser
parents: 29678
diff changeset
    24
import jdk.test.lib.ExitCode;
b8d532cb6420 8067013: Rename the com.oracle.java.testlibary package
ykantser
parents: 29678
diff changeset
    25
import jdk.test.lib.cli.CommandLineOptionTest;
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    26
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    27
/**
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    28
 * @test
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    29
 * @bug 8031323
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    30
 * @summary Verify SurvivorAlignmentInBytes option processing.
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    31
 * @library /testlibrary
28182
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    32
 * @requires vm.opt.SurvivorAlignmentInBytes == null
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    33
 *           & vm.opt.ObjectAlignmentInBytes == null
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    34
 *           & vm.opt.UnlockExperimentalVMOptions == null
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    35
 *           & (vm.opt.IgnoreUnrecognizedVMOptions == null
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    36
 *              | vm.opt.IgnoreUnrecognizedVMOptions == "false")
29678
dd2f3932c21e 8075586: Add @modules as needed to the open hotspot tests
ykantser
parents: 28204
diff changeset
    37
 * @modules java.base/sun.misc
dd2f3932c21e 8075586: Add @modules as needed to the open hotspot tests
ykantser
parents: 28204
diff changeset
    38
 *          java.management
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    39
 * @run main TestSurvivorAlignmentInBytesOption
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    40
 */
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    41
public class TestSurvivorAlignmentInBytesOption {
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    42
    public static void main(String args[]) throws Throwable {
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    43
        String optionName = "SurvivorAlignmentInBytes";
28182
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    44
        String unlockExperimentalVMOpts = "UnlockExperimentalVMOptions";
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    45
        String optionIsExperimental
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    46
                = CommandLineOptionTest.getExperimentalOptionErrorMessage(
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    47
                optionName);
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 30604
diff changeset
    48
        String valueIsTooSmall= ".*SurvivorAlignmentInBytes.*must be greater"
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 30604
diff changeset
    49
                + " than or equal to ObjectAlignmentInBytes.*";
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 30604
diff changeset
    50
        String mustBePowerOf2 = ".*SurvivorAlignmentInBytes.*must be "
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    51
                + "power of 2.*";
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    52
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    53
        // Verify that without -XX:+UnlockExperimentalVMOptions usage of
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    54
        // SurvivorAlignmentInBytes option will cause JVM startup failure
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    55
        // with the warning message saying that that option is experimental.
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    56
        String shouldFailMessage = String.format("JVM option '%s' is "
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    57
                + "experimental.%nJVM startup should fail without "
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    58
                + "-XX:+UnlockExperimentalVMOptions option", optionName);
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    59
        CommandLineOptionTest.verifyJVMStartup(
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    60
                new String[]{optionIsExperimental}, null,
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    61
                shouldFailMessage, shouldFailMessage,
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    62
                ExitCode.FAIL, false,
28182
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    63
                "-XX:-UnlockExperimentalVMOptions",
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    64
                CommandLineOptionTest.prepareBooleanFlag(
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    65
                        unlockExperimentalVMOpts, false),
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    66
                CommandLineOptionTest.prepareNumericFlag(optionName, 64));
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    67
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    68
        // Verify that with -XX:+UnlockExperimentalVMOptions passed to JVM
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    69
        // usage of SurvivorAlignmentInBytes option won't cause JVM startup
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    70
        // failure.
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    71
        String shouldPassMessage = String.format("JVM option '%s' is "
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    72
                + "experimental.%nJVM startup should pass with "
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    73
                + "-XX:+UnlockExperimentalVMOptions option", optionName);
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    74
        String noWarningMessage = "There should be no warnings when use "
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    75
                + "with -XX:+UnlockExperimentalVMOptions option";
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    76
        CommandLineOptionTest.verifyJVMStartup(
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    77
                null, new String[]{optionIsExperimental},
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    78
                shouldPassMessage, noWarningMessage,
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    79
                ExitCode.OK, false,
28182
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    80
                CommandLineOptionTest.prepareBooleanFlag(
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    81
                        unlockExperimentalVMOpts, true),
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    82
                CommandLineOptionTest.prepareNumericFlag(optionName, 64));
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    83
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    84
        // Verify that if specified SurvivorAlignmentInBytes is lower than
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    85
        // ObjectAlignmentInBytes, then the JVM startup will fail with
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    86
        // appropriate error message.
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    87
        shouldFailMessage = String.format("JVM startup should fail with "
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    88
                + "'%s' option value lower than ObjectAlignmentInBytes", optionName);
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    89
        CommandLineOptionTest.verifyJVMStartup(
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    90
                new String[]{valueIsTooSmall}, null,
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    91
                shouldFailMessage, shouldFailMessage,
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    92
                ExitCode.FAIL, false,
28182
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    93
                CommandLineOptionTest.prepareBooleanFlag(
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    94
                        unlockExperimentalVMOpts, true),
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    95
                CommandLineOptionTest.prepareNumericFlag(optionName, 2));
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    96
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    97
        // Verify that if specified SurvivorAlignmentInBytes value is not
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    98
        // a power of 2 then the JVM startup will fail with appropriate error
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    99
        // message.
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
   100
        shouldFailMessage = String.format("JVM startup should fail with "
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
   101
                + "'%s' option value is not a power of 2", optionName);
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   102
        CommandLineOptionTest.verifyJVMStartup(
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
   103
                new String[]{mustBePowerOf2}, null,
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
   104
                shouldFailMessage, shouldFailMessage,
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
   105
                ExitCode.FAIL, false,
28182
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
   106
                CommandLineOptionTest.prepareBooleanFlag(
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
   107
                        unlockExperimentalVMOpts, true),
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
   108
                CommandLineOptionTest.prepareNumericFlag(optionName, 127));
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   109
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   110
        // Verify that if SurvivorAlignmentInBytes has correct value, then
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   111
        // the JVM will be started without errors.
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
   112
        shouldPassMessage = String.format("JVM startup should pass with "
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
   113
                + "correct '%s' option value", optionName);
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
   114
        noWarningMessage = String.format("There should be no warnings when use "
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
   115
                + "correct '%s' option value", optionName);
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   116
        CommandLineOptionTest.verifyJVMStartup(
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   117
                null, new String[]{".*SurvivorAlignmentInBytes.*"},
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
   118
                shouldPassMessage, noWarningMessage,
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   119
                ExitCode.OK, false,
28182
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
   120
                CommandLineOptionTest.prepareBooleanFlag(
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
   121
                        unlockExperimentalVMOpts, true),
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
   122
                CommandLineOptionTest.prepareNumericFlag(optionName, 128));
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   123
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   124
        // Verify that we can setup different SurvivorAlignmentInBytes values.
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   125
        for (int alignment = 32; alignment <= 128; alignment *= 2) {
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
   126
            shouldPassMessage = String.format("JVM startup should pass with "
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
   127
                    + "'%s' = %d", optionName, alignment);
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   128
            CommandLineOptionTest.verifyOptionValue(optionName,
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
   129
                    Integer.toString(alignment), shouldPassMessage,
28182
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
   130
                    CommandLineOptionTest.prepareBooleanFlag(
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
   131
                            unlockExperimentalVMOpts, true),
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
   132
                    CommandLineOptionTest.prepareNumericFlag(
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
   133
                            optionName, alignment));
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   134
        }
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   135
    }
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   136
}