equal
deleted
inserted
replaced
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 |