author | aph |
Thu, 05 Feb 2015 11:47:33 -0800 | |
changeset 29190 | 9917b8aed927 |
parent 28204 | 344d97fad05b |
child 29678 | dd2f3932c21e |
permissions | -rw-r--r-- |
27890
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
1 |
/* |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
2 |
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
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 |
|
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
24 |
import com.oracle.java.testlibrary.ExitCode; |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
25 |
import com.oracle.java.testlibrary.cli.CommandLineOptionTest; |
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") |
27890
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
37 |
* @run main TestSurvivorAlignmentInBytesOption |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
38 |
*/ |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
39 |
public class TestSurvivorAlignmentInBytesOption { |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
40 |
public static void main(String args[]) throws Throwable { |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
41 |
String optionName = "SurvivorAlignmentInBytes"; |
28182
8a51e754d3d8
8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents:
27890
diff
changeset
|
42 |
String unlockExperimentalVMOpts = "UnlockExperimentalVMOptions"; |
27890
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
43 |
String optionIsExperimental |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
44 |
= CommandLineOptionTest.getExperimentalOptionErrorMessage( |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
45 |
optionName); |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
46 |
String valueIsTooSmall= ".*SurvivorAlignmentInBytes=.*must be greater" |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
47 |
+ " than ObjectAlignmentInBytes.*"; |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
48 |
String mustBePowerOf2 = ".*SurvivorAlignmentInBytes=.*must be " |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
49 |
+ "power of 2.*"; |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
50 |
|
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
51 |
// Verify that without -XX:+UnlockExperimentalVMOptions usage of |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
52 |
// SurvivorAlignmentInBytes option will cause JVM startup failure |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
53 |
// 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
|
54 |
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
|
55 |
+ "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
|
56 |
+ "-XX:+UnlockExperimentalVMOptions option", optionName); |
27890
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
57 |
CommandLineOptionTest.verifyJVMStartup( |
28204
344d97fad05b
8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents:
28182
diff
changeset
|
58 |
new String[]{optionIsExperimental}, null, |
344d97fad05b
8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents:
28182
diff
changeset
|
59 |
shouldFailMessage, shouldFailMessage, |
344d97fad05b
8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents:
28182
diff
changeset
|
60 |
ExitCode.FAIL, false, |
28182
8a51e754d3d8
8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents:
27890
diff
changeset
|
61 |
"-XX:-UnlockExperimentalVMOptions", |
8a51e754d3d8
8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents:
27890
diff
changeset
|
62 |
CommandLineOptionTest.prepareBooleanFlag( |
8a51e754d3d8
8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents:
27890
diff
changeset
|
63 |
unlockExperimentalVMOpts, false), |
8a51e754d3d8
8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents:
27890
diff
changeset
|
64 |
CommandLineOptionTest.prepareNumericFlag(optionName, 64)); |
27890
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
65 |
|
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
66 |
// Verify that with -XX:+UnlockExperimentalVMOptions passed to JVM |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
67 |
// 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
|
68 |
// failure. |
28204
344d97fad05b
8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents:
28182
diff
changeset
|
69 |
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
|
70 |
+ "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
|
71 |
+ "-XX:+UnlockExperimentalVMOptions option", optionName); |
344d97fad05b
8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents:
28182
diff
changeset
|
72 |
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
|
73 |
+ "with -XX:+UnlockExperimentalVMOptions option"; |
27890
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
74 |
CommandLineOptionTest.verifyJVMStartup( |
28204
344d97fad05b
8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents:
28182
diff
changeset
|
75 |
null, new String[]{optionIsExperimental}, |
344d97fad05b
8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents:
28182
diff
changeset
|
76 |
shouldPassMessage, noWarningMessage, |
344d97fad05b
8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents:
28182
diff
changeset
|
77 |
ExitCode.OK, false, |
28182
8a51e754d3d8
8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents:
27890
diff
changeset
|
78 |
CommandLineOptionTest.prepareBooleanFlag( |
8a51e754d3d8
8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents:
27890
diff
changeset
|
79 |
unlockExperimentalVMOpts, true), |
8a51e754d3d8
8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents:
27890
diff
changeset
|
80 |
CommandLineOptionTest.prepareNumericFlag(optionName, 64)); |
27890
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
81 |
|
28204
344d97fad05b
8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents:
28182
diff
changeset
|
82 |
// 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
|
83 |
// ObjectAlignmentInBytes, then the JVM startup will fail with |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
84 |
// appropriate error message. |
28204
344d97fad05b
8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents:
28182
diff
changeset
|
85 |
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
|
86 |
+ "'%s' option value lower than ObjectAlignmentInBytes", optionName); |
27890
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
87 |
CommandLineOptionTest.verifyJVMStartup( |
28204
344d97fad05b
8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents:
28182
diff
changeset
|
88 |
new String[]{valueIsTooSmall}, null, |
344d97fad05b
8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents:
28182
diff
changeset
|
89 |
shouldFailMessage, shouldFailMessage, |
344d97fad05b
8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents:
28182
diff
changeset
|
90 |
ExitCode.FAIL, false, |
28182
8a51e754d3d8
8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents:
27890
diff
changeset
|
91 |
CommandLineOptionTest.prepareBooleanFlag( |
8a51e754d3d8
8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents:
27890
diff
changeset
|
92 |
unlockExperimentalVMOpts, true), |
8a51e754d3d8
8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents:
27890
diff
changeset
|
93 |
CommandLineOptionTest.prepareNumericFlag(optionName, 2)); |
27890
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
94 |
|
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
95 |
// Verify that if specified SurvivorAlignmentInBytes value is not |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
96 |
// 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
|
97 |
// message. |
28204
344d97fad05b
8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents:
28182
diff
changeset
|
98 |
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
|
99 |
+ "'%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
|
100 |
CommandLineOptionTest.verifyJVMStartup( |
28204
344d97fad05b
8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents:
28182
diff
changeset
|
101 |
new String[]{mustBePowerOf2}, null, |
344d97fad05b
8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents:
28182
diff
changeset
|
102 |
shouldFailMessage, shouldFailMessage, |
344d97fad05b
8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents:
28182
diff
changeset
|
103 |
ExitCode.FAIL, false, |
28182
8a51e754d3d8
8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents:
27890
diff
changeset
|
104 |
CommandLineOptionTest.prepareBooleanFlag( |
8a51e754d3d8
8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents:
27890
diff
changeset
|
105 |
unlockExperimentalVMOpts, true), |
8a51e754d3d8
8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents:
27890
diff
changeset
|
106 |
CommandLineOptionTest.prepareNumericFlag(optionName, 127)); |
27890
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
107 |
|
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
108 |
// Verify that if SurvivorAlignmentInBytes has correct value, then |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
109 |
// 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
|
110 |
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
|
111 |
+ "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
|
112 |
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
|
113 |
+ "correct '%s' option value", optionName); |
27890
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
114 |
CommandLineOptionTest.verifyJVMStartup( |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
115 |
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
|
116 |
shouldPassMessage, noWarningMessage, |
27890
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
117 |
ExitCode.OK, false, |
28182
8a51e754d3d8
8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents:
27890
diff
changeset
|
118 |
CommandLineOptionTest.prepareBooleanFlag( |
8a51e754d3d8
8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents:
27890
diff
changeset
|
119 |
unlockExperimentalVMOpts, true), |
8a51e754d3d8
8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents:
27890
diff
changeset
|
120 |
CommandLineOptionTest.prepareNumericFlag(optionName, 128)); |
27890
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
121 |
|
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
122 |
// Verify that we can setup different SurvivorAlignmentInBytes values. |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
123 |
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
|
124 |
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
|
125 |
+ "'%s' = %d", optionName, alignment); |
27890
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
126 |
CommandLineOptionTest.verifyOptionValue(optionName, |
28204
344d97fad05b
8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
kvn
parents:
28182
diff
changeset
|
127 |
Integer.toString(alignment), shouldPassMessage, |
28182
8a51e754d3d8
8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents:
27890
diff
changeset
|
128 |
CommandLineOptionTest.prepareBooleanFlag( |
8a51e754d3d8
8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents:
27890
diff
changeset
|
129 |
unlockExperimentalVMOpts, true), |
8a51e754d3d8
8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents:
27890
diff
changeset
|
130 |
CommandLineOptionTest.prepareNumericFlag( |
8a51e754d3d8
8066143: [TESTBUG] New tests in gc/survivorAlignment/ fails
fzhinkin
parents:
27890
diff
changeset
|
131 |
optionName, alignment)); |
27890
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
132 |
} |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
133 |
} |
9c0e6a049e1f
8037968: Add tests on alignment of objects copied to survivor space
fzhinkin
parents:
diff
changeset
|
134 |
} |