73 } 74 75 public static void main(String[] args) throws Exception { 76 int failedTests; 77 List<JVMOption> allOptions; 78 79 allOptionsAsMap = JVMOptionsUtils.getOptionsWithRangeAsMap(origin -> (!(origin.contains("develop") || origin.contains("notproduct")))); 80 81 /* Shared flags can cause JVM to exit with error code 2 */ 82 setAllowedExitCodes("SharedReadWriteSize", 2); 83 setAllowedExitCodes("SharedReadOnlySize", 2); 84 setAllowedExitCodes("SharedMiscDataSize", 2); 85 setAllowedExitCodes("SharedMiscCodeSize", 2); 86 87 /* 88 * Remove CICompilerCount from testing because currently it can hang system 89 */ 90 excludeTestMaxRange("CICompilerCount"); 91 92 /* 93 * JDK-8153340 94 * Temporary exclude AllocatePrefetchDistance option from testing 95 */ 96 excludeTestRange("AllocatePrefetchDistance"); 97 98 99 /* 100 * JDK-8136766 101 * Temporarily remove ThreadStackSize from testing because Windows can set it to 0 102 * (for default OS size) but other platforms insist it must be greater than 0 103 */ 104 excludeTestRange("ThreadStackSize"); 105 106 /* 107 * Remove the flag controlling the size of the stack because the 108 * flag has direct influence on the physical memory usage of 109 * the VM. 110 */ 111 allOptionsAsMap.remove("CompilerThreadStackSize"); 112 113 /* 114 * Exclude MallocMaxTestWords as it is expected to exit VM at small values (>=0) 115 */ 116 excludeTestMinRange("MallocMaxTestWords"); 117 118 /* 119 * Exclude below options as their maximum value would consume too much memory | 73 } 74 75 public static void main(String[] args) throws Exception { 76 int failedTests; 77 List<JVMOption> allOptions; 78 79 allOptionsAsMap = JVMOptionsUtils.getOptionsWithRangeAsMap(origin -> (!(origin.contains("develop") || origin.contains("notproduct")))); 80 81 /* Shared flags can cause JVM to exit with error code 2 */ 82 setAllowedExitCodes("SharedReadWriteSize", 2); 83 setAllowedExitCodes("SharedReadOnlySize", 2); 84 setAllowedExitCodes("SharedMiscDataSize", 2); 85 setAllowedExitCodes("SharedMiscCodeSize", 2); 86 87 /* 88 * Remove CICompilerCount from testing because currently it can hang system 89 */ 90 excludeTestMaxRange("CICompilerCount"); 91 92 /* 93 * JDK-8136766 94 * Temporarily remove ThreadStackSize from testing because Windows can set it to 0 95 * (for default OS size) but other platforms insist it must be greater than 0 96 */ 97 excludeTestRange("ThreadStackSize"); 98 99 /* 100 * Remove the flag controlling the size of the stack because the 101 * flag has direct influence on the physical memory usage of 102 * the VM. 103 */ 104 allOptionsAsMap.remove("CompilerThreadStackSize"); 105 106 /* 107 * Exclude MallocMaxTestWords as it is expected to exit VM at small values (>=0) 108 */ 109 excludeTestMinRange("MallocMaxTestWords"); 110 111 /* 112 * Exclude below options as their maximum value would consume too much memory |