test/hotspot/jtreg/gc/arguments/TestSurvivorAlignmentInBytesOption.java
author erikj
Tue, 12 Sep 2017 19:03:39 +0200
changeset 47216 71c04702a3d5
parent 40631 hotspot/test/gc/arguments/TestSurvivorAlignmentInBytesOption.java@ed82623d7831
child 53523 4c5184c56dc2
permissions -rw-r--r--
8187443: Forest Consolidation: Move files to unified layout Reviewed-by: darcy, ihse
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
/*
40631
ed82623d7831 8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents: 36851
diff changeset
     2
 * Copyright (c) 2014, 2016, 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
40631
ed82623d7831 8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents: 36851
diff changeset
    24
import jdk.test.lib.process.ExitCode;
30604
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.
40631
ed82623d7831 8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents: 36851
diff changeset
    31
 * @library /test/lib
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")
36851
03e2f4d0a421 8153737: Unsupported Module
chegar
parents: 31371
diff changeset
    37
 * @modules java.base/jdk.internal.misc
29678
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
}