comparison src/hotspot/share/runtime/compilationPolicy.cpp @ 53643:7d3cde494494

8214206: Fix for JDK-8213419 is broken on 32-bit Reviewed-by: mdoerr, shade
author roland
date Thu, 22 Nov 2018 17:25:47 +0100
parents 0451e0a2f1f5
children 9e041366c764
comparison
equal deleted inserted replaced
9:0efd32da6a3f 10:0875e4b79b18
226 // Setup the compiler thread numbers 226 // Setup the compiler thread numbers
227 if (CICompilerCountPerCPU) { 227 if (CICompilerCountPerCPU) {
228 // Example: if CICompilerCountPerCPU is true, then we get 228 // Example: if CICompilerCountPerCPU is true, then we get
229 // max(log2(8)-1,1) = 2 compiler threads on an 8-way machine. 229 // max(log2(8)-1,1) = 2 compiler threads on an 8-way machine.
230 // May help big-app startup time. 230 // May help big-app startup time.
231 _compiler_count = MAX2(log2_intptr(os::active_processor_count())-1,1); 231 _compiler_count = MAX2(log2_int(os::active_processor_count())-1,1);
232 // Make sure there is enough space in the code cache to hold all the compiler buffers 232 // Make sure there is enough space in the code cache to hold all the compiler buffers
233 size_t buffer_size = 1; 233 size_t buffer_size = 1;
234 #ifdef COMPILER1 234 #ifdef COMPILER1
235 buffer_size = is_client_compilation_mode_vm() ? Compiler::code_buffer_size() : buffer_size; 235 buffer_size = is_client_compilation_mode_vm() ? Compiler::code_buffer_size() : buffer_size;
236 #endif 236 #endif