test/hotspot/jtreg/gc/arguments/TestSurvivorAlignmentInBytesOption.java
author lkorinth
Mon, 28 Jan 2019 15:53:56 +0100
changeset 53523 4c5184c56dc2
parent 47216 71c04702a3d5
child 57609 c717fd746de4
child 58678 9cf78a70fa4f
permissions -rw-r--r--
8214799: Add package declaration to each JTREG test case in the gc folder Reviewed-by: lmesnik, tschatzl
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
/*
53523
4c5184c56dc2 8214799: Add package declaration to each JTREG test case in the gc folder
lkorinth
parents: 47216
diff changeset
     2
 * Copyright (c) 2014, 2019, 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
53523
4c5184c56dc2 8214799: Add package declaration to each JTREG test case in the gc folder
lkorinth
parents: 47216
diff changeset
    24
package gc.arguments;
4c5184c56dc2 8214799: Add package declaration to each JTREG test case in the gc folder
lkorinth
parents: 47216
diff changeset
    25
40631
ed82623d7831 8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents: 36851
diff changeset
    26
import jdk.test.lib.process.ExitCode;
30604
b8d532cb6420 8067013: Rename the com.oracle.java.testlibary package
ykantser
parents: 29678
diff changeset
    27
import jdk.test.lib.cli.CommandLineOptionTest;
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    28
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    29
/**
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    30
 * @test
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    31
 * @bug 8031323
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    32
 * @summary Verify SurvivorAlignmentInBytes option processing.
40631
ed82623d7831 8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents: 36851
diff changeset
    33
 * @library /test/lib
28182
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    34
 * @requires vm.opt.SurvivorAlignmentInBytes == null
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    35
 *           & vm.opt.ObjectAlignmentInBytes == null
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    36
 *           & vm.opt.UnlockExperimentalVMOptions == null
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    37
 *           & (vm.opt.IgnoreUnrecognizedVMOptions == null
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    38
 *              | vm.opt.IgnoreUnrecognizedVMOptions == "false")
36851
03e2f4d0a421 8153737: Unsupported Module
chegar
parents: 31371
diff changeset
    39
 * @modules java.base/jdk.internal.misc
29678
dd2f3932c21e 8075586: Add @modules as needed to the open hotspot tests
ykantser
parents: 28204
diff changeset
    40
 *          java.management
53523
4c5184c56dc2 8214799: Add package declaration to each JTREG test case in the gc folder
lkorinth
parents: 47216
diff changeset
    41
 * @run main gc.arguments.TestSurvivorAlignmentInBytesOption
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    42
 */
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    43
public class TestSurvivorAlignmentInBytesOption {
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    44
    public static void main(String args[]) throws Throwable {
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    45
        String optionName = "SurvivorAlignmentInBytes";
28182
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    46
        String unlockExperimentalVMOpts = "UnlockExperimentalVMOptions";
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    47
        String optionIsExperimental
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    48
                = CommandLineOptionTest.getExperimentalOptionErrorMessage(
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    49
                optionName);
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 30604
diff changeset
    50
        String valueIsTooSmall= ".*SurvivorAlignmentInBytes.*must be greater"
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 30604
diff changeset
    51
                + " than or equal to ObjectAlignmentInBytes.*";
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 30604
diff changeset
    52
        String mustBePowerOf2 = ".*SurvivorAlignmentInBytes.*must be "
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    53
                + "power of 2.*";
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    54
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    55
        // Verify that without -XX:+UnlockExperimentalVMOptions usage of
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    56
        // SurvivorAlignmentInBytes option will cause JVM startup failure
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    57
        // 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
    58
        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
    59
                + "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
    60
                + "-XX:+UnlockExperimentalVMOptions option", optionName);
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    61
        CommandLineOptionTest.verifyJVMStartup(
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    62
                new String[]{optionIsExperimental}, null,
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    63
                shouldFailMessage, shouldFailMessage,
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    64
                ExitCode.FAIL, false,
28182
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    65
                "-XX:-UnlockExperimentalVMOptions",
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    66
                CommandLineOptionTest.prepareBooleanFlag(
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    67
                        unlockExperimentalVMOpts, false),
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    68
                CommandLineOptionTest.prepareNumericFlag(optionName, 64));
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    69
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    70
        // Verify that with -XX:+UnlockExperimentalVMOptions passed to JVM
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    71
        // 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
    72
        // failure.
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    73
        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
    74
                + "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
    75
                + "-XX:+UnlockExperimentalVMOptions option", optionName);
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    76
        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
    77
                + "with -XX:+UnlockExperimentalVMOptions option";
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    78
        CommandLineOptionTest.verifyJVMStartup(
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    79
                null, new String[]{optionIsExperimental},
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    80
                shouldPassMessage, noWarningMessage,
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    81
                ExitCode.OK, false,
28182
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    82
                CommandLineOptionTest.prepareBooleanFlag(
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    83
                        unlockExperimentalVMOpts, true),
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    84
                CommandLineOptionTest.prepareNumericFlag(optionName, 64));
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    85
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    86
        // 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
    87
        // ObjectAlignmentInBytes, then the JVM startup will fail with
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    88
        // appropriate error message.
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    89
        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
    90
                + "'%s' option value lower than ObjectAlignmentInBytes", optionName);
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    91
        CommandLineOptionTest.verifyJVMStartup(
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    92
                new String[]{valueIsTooSmall}, null,
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    93
                shouldFailMessage, shouldFailMessage,
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
    94
                ExitCode.FAIL, false,
28182
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    95
                CommandLineOptionTest.prepareBooleanFlag(
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    96
                        unlockExperimentalVMOpts, true),
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
    97
                CommandLineOptionTest.prepareNumericFlag(optionName, 2));
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    98
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
    99
        // Verify that if specified SurvivorAlignmentInBytes value is not
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   100
        // 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
   101
        // message.
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
   102
        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
   103
                + "'%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
   104
        CommandLineOptionTest.verifyJVMStartup(
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
   105
                new String[]{mustBePowerOf2}, null,
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
   106
                shouldFailMessage, shouldFailMessage,
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
   107
                ExitCode.FAIL, false,
28182
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
   108
                CommandLineOptionTest.prepareBooleanFlag(
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
   109
                        unlockExperimentalVMOpts, true),
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
   110
                CommandLineOptionTest.prepareNumericFlag(optionName, 127));
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   111
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   112
        // Verify that if SurvivorAlignmentInBytes has correct value, then
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   113
        // 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
   114
        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
   115
                + "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
   116
        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
   117
                + "correct '%s' option value", optionName);
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   118
        CommandLineOptionTest.verifyJVMStartup(
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   119
                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
   120
                shouldPassMessage, noWarningMessage,
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   121
                ExitCode.OK, false,
28182
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
   122
                CommandLineOptionTest.prepareBooleanFlag(
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
   123
                        unlockExperimentalVMOpts, true),
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
   124
                CommandLineOptionTest.prepareNumericFlag(optionName, 128));
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   125
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   126
        // Verify that we can setup different SurvivorAlignmentInBytes values.
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   127
        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
   128
            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
   129
                    + "'%s' = %d", optionName, alignment);
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   130
            CommandLineOptionTest.verifyOptionValue(optionName,
28204
344d97fad05b 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents: 28182
diff changeset
   131
                    Integer.toString(alignment), shouldPassMessage,
28182
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
   132
                    CommandLineOptionTest.prepareBooleanFlag(
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
   133
                            unlockExperimentalVMOpts, true),
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
   134
                    CommandLineOptionTest.prepareNumericFlag(
8a51e754d3d8 8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents: 27890
diff changeset
   135
                            optionName, alignment));
27890
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   136
        }
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   137
    }
9c0e6a049e1f 8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff changeset
   138
}