< prev index next >

test/compiler/codecache/cli/TestSegmentedCodeCacheOption.java

Print this page




 120                 // SCC could be explicitly enabled w/o TieredCompilation and w/
 121                 // small ReservedCodeCacheSize value
 122                 errorMessage = String.format("It should be possible to "
 123                                 + "explicitly enable %s with small %s and "
 124                                 + "disabled tiered comp.", SEGMENTED_CODE_CACHE,
 125                         BlobType.All.sizeOptionName);
 126 
 127                 CommandLineOptionTest.verifyOptionValueForSameVM(
 128                         SEGMENTED_CODE_CACHE, "true", errorMessage,
 129                         CommandLineOptionTest.prepareBooleanFlag(
 130                                 TIERED_COMPILATION, false),
 131                         CommandLineOptionTest.prepareNumericFlag(
 132                                 BlobType.All.sizeOptionName,
 133                                 BELOW_THRESHOLD_CC_SIZE),
 134                         USE_SEGMENTED_CODE_CACHE);
 135             }
 136         },
 137         OPTION_VALUES_SERVER_SPECIFIC {
 138             @Override
 139             public boolean isApplicable() {
 140                 return Platform.isServer();
 141             }
 142 
 143             @Override
 144             public void run() throws Throwable {
 145                 // SCC is enabled by default when TieredCompilation is on and
 146                 // ReservedCodeCacheSize is large enough
 147                 String errorMessage = String.format("Large enough %s and "
 148                                 + "enabled tiered compilation should enable %s "
 149                                 + "by default.", BlobType.All.sizeOptionName,
 150                         SEGMENTED_CODE_CACHE);
 151 
 152                 CommandLineOptionTest.verifyOptionValueForSameVM(
 153                         SEGMENTED_CODE_CACHE, "true", errorMessage,
 154                         CommandLineOptionTest.prepareNumericFlag(
 155                                 BlobType.All.sizeOptionName,
 156                                 THRESHOLD_CC_SIZE_VALUE),
 157                         CommandLineOptionTest.prepareBooleanFlag(
 158                                 TIERED_COMPILATION, true));
 159             }
 160         };




 120                 // SCC could be explicitly enabled w/o TieredCompilation and w/
 121                 // small ReservedCodeCacheSize value
 122                 errorMessage = String.format("It should be possible to "
 123                                 + "explicitly enable %s with small %s and "
 124                                 + "disabled tiered comp.", SEGMENTED_CODE_CACHE,
 125                         BlobType.All.sizeOptionName);
 126 
 127                 CommandLineOptionTest.verifyOptionValueForSameVM(
 128                         SEGMENTED_CODE_CACHE, "true", errorMessage,
 129                         CommandLineOptionTest.prepareBooleanFlag(
 130                                 TIERED_COMPILATION, false),
 131                         CommandLineOptionTest.prepareNumericFlag(
 132                                 BlobType.All.sizeOptionName,
 133                                 BELOW_THRESHOLD_CC_SIZE),
 134                         USE_SEGMENTED_CODE_CACHE);
 135             }
 136         },
 137         OPTION_VALUES_SERVER_SPECIFIC {
 138             @Override
 139             public boolean isApplicable() {
 140                 return Platform.isServer() && Platform.isTieredSupported();
 141             }
 142 
 143             @Override
 144             public void run() throws Throwable {
 145                 // SCC is enabled by default when TieredCompilation is on and
 146                 // ReservedCodeCacheSize is large enough
 147                 String errorMessage = String.format("Large enough %s and "
 148                                 + "enabled tiered compilation should enable %s "
 149                                 + "by default.", BlobType.All.sizeOptionName,
 150                         SEGMENTED_CODE_CACHE);
 151 
 152                 CommandLineOptionTest.verifyOptionValueForSameVM(
 153                         SEGMENTED_CODE_CACHE, "true", errorMessage,
 154                         CommandLineOptionTest.prepareNumericFlag(
 155                                 BlobType.All.sizeOptionName,
 156                                 THRESHOLD_CC_SIZE_VALUE),
 157                         CommandLineOptionTest.prepareBooleanFlag(
 158                                 TIERED_COMPILATION, true));
 159             }
 160         };


< prev index next >