60 } 61 62 private static void excludeTestRange(String optionName) { 63 allOptionsAsMap.remove(optionName); 64 } 65 66 private static void setAllowedExitCodes(String optionName, Integer... allowedExitCodes) { 67 JVMOption option = allOptionsAsMap.get(optionName); 68 69 if (option != null) { 70 option.setAllowedExitCodes(allowedExitCodes); 71 } 72 } 73 74 public static void main(String[] args) throws Exception { 75 int failedTests; 76 List<JVMOption> allOptions; 77 78 allOptionsAsMap = JVMOptionsUtils.getOptionsWithRangeAsMap(origin -> (!(origin.contains("develop") || origin.contains("notproduct")))); 79 80 /* Shared flags can cause JVM to exit with error code 2 */ 81 setAllowedExitCodes("SharedReadWriteSize", 2); 82 setAllowedExitCodes("SharedReadOnlySize", 2); 83 setAllowedExitCodes("SharedMiscDataSize", 2); 84 setAllowedExitCodes("SharedMiscCodeSize", 2); 85 86 /* 87 * Remove CICompilerCount from testing because currently it can hang system 88 */ 89 excludeTestMaxRange("CICompilerCount"); 90 91 /* 92 * Exclude MallocMaxTestWords as it is expected to exit VM at small values (>=0) 93 */ 94 excludeTestMinRange("MallocMaxTestWords"); 95 96 /* 97 * Exclude below options as their maximum value would consume too much memory 98 * and would affect other tests that run in parallel. 99 */ 100 excludeTestMaxRange("ConcGCThreads"); 101 excludeTestMaxRange("G1ConcRefinementThreads"); 102 excludeTestMaxRange("G1RSetRegionEntries"); 103 excludeTestMaxRange("G1RSetSparseRegionEntries"); 104 excludeTestMaxRange("G1UpdateBufferSize"); 105 excludeTestMaxRange("InitialBootClassLoaderMetaspaceSize"); | 60 } 61 62 private static void excludeTestRange(String optionName) { 63 allOptionsAsMap.remove(optionName); 64 } 65 66 private static void setAllowedExitCodes(String optionName, Integer... allowedExitCodes) { 67 JVMOption option = allOptionsAsMap.get(optionName); 68 69 if (option != null) { 70 option.setAllowedExitCodes(allowedExitCodes); 71 } 72 } 73 74 public static void main(String[] args) throws Exception { 75 int failedTests; 76 List<JVMOption> allOptions; 77 78 allOptionsAsMap = JVMOptionsUtils.getOptionsWithRangeAsMap(origin -> (!(origin.contains("develop") || origin.contains("notproduct")))); 79 80 /* 81 * Remove CICompilerCount from testing because currently it can hang system 82 */ 83 excludeTestMaxRange("CICompilerCount"); 84 85 /* 86 * Exclude MallocMaxTestWords as it is expected to exit VM at small values (>=0) 87 */ 88 excludeTestMinRange("MallocMaxTestWords"); 89 90 /* 91 * Exclude below options as their maximum value would consume too much memory 92 * and would affect other tests that run in parallel. 93 */ 94 excludeTestMaxRange("ConcGCThreads"); 95 excludeTestMaxRange("G1ConcRefinementThreads"); 96 excludeTestMaxRange("G1RSetRegionEntries"); 97 excludeTestMaxRange("G1RSetSparseRegionEntries"); 98 excludeTestMaxRange("G1UpdateBufferSize"); 99 excludeTestMaxRange("InitialBootClassLoaderMetaspaceSize"); |