|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
4 | 4 | *
|
5 | 5 | * This code is free software; you can redistribute it and/or modify it
|
@@ -56,6 +56,9 @@ public class TestSegmentedCodeCacheOption {
|
56 | 56 | private static final String[] UNEXPECTED_MESSAGES = new String[] {
|
57 | 57 | ".*" + SEGMENTED_CODE_CACHE + ".*"
|
58 | 58 | };
|
| 59 | + private static final String[] XINT_EXPECTED_MESSAGE = new String[] { |
| 60 | + "SegmentedCodeCache has no meaningful effect with -Xint" |
| 61 | + }; |
59 | 62 |
|
60 | 63 |
|
61 | 64 | private static enum TestCase {
|
@@ -86,10 +89,11 @@ public void run() throws Throwable {
|
86 | 89 | // ... and even w/ Xint.
|
87 | 90 | testCaseExitCodeMessage = "It should be possible to use "
|
88 | 91 | + USE_SEGMENTED_CODE_CACHE + " in interpreted mode "
|
89 |
| - + "without any errors."; |
| 92 | + + "but it produces a warning that it is ignored."; |
90 | 93 |
|
91 | 94 | CommandLineOptionTest.verifyJVMStartup(
|
92 |
| - /* expected messages */ null, UNEXPECTED_MESSAGES, |
| 95 | + XINT_EXPECTED_MESSAGE, |
| 96 | + /* unexpected messages */ null, |
93 | 97 | testCaseExitCodeMessage, testCaseWarningMessage,
|
94 | 98 | ExitCode.OK, false, INT_MODE, USE_SEGMENTED_CODE_CACHE);
|
95 | 99 | }
|
@@ -117,14 +121,6 @@ public void run() throws Throwable {
|
117 | 121 | CommandLineOptionTest.prepareNumericFlag(
|
118 | 122 | BlobType.All.sizeOptionName,
|
119 | 123 | BELOW_THRESHOLD_CC_SIZE));
|
120 |
| - // SCC could be explicitly enabled w/ Xint |
121 |
| - errorMessage = String.format("It should be possible to " |
122 |
| - + "explicitly enable %s in interpreted mode.", |
123 |
| - SEGMENTED_CODE_CACHE); |
124 |
| - |
125 |
| - CommandLineOptionTest.verifyOptionValue(SEGMENTED_CODE_CACHE, |
126 |
| - "true", errorMessage, false, INT_MODE, |
127 |
| - USE_SEGMENTED_CODE_CACHE); |
128 | 124 | // SCC could be explicitly enabled w/o TieredCompilation and w/
|
129 | 125 | // small ReservedCodeCacheSize value
|
130 | 126 | errorMessage = String.format("It should be possible to "
|
|
0 commit comments