Blocks :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
The active_processor_count is the number of CPUs available to the JVM process and as such can change dynamically. For some uses it may be beneficial to cache the initial active processor count and use that value for decision making - eg for GC ergonomics. The cached value could also be use by the os::print_cpu_info, and other routines, that want to report cpu information but may be called in a crash context and so are limited in what they attempt to do. In particular they report the number of configured processors (processor_count()) not the number of available processors (active_processor_count()), because the former is an unchanging value cached at system initialization, while the latter requires system calls that make not be possible in a crash context.
|