equal
deleted
inserted
replaced
3543 fatal("Could not enable polling page at " PTR_FORMAT, _polling_page); |
3543 fatal("Could not enable polling page at " PTR_FORMAT, _polling_page); |
3544 } |
3544 } |
3545 }; |
3545 }; |
3546 |
3546 |
3547 int os::active_processor_count() { |
3547 int os::active_processor_count() { |
|
3548 // User has overridden the number of active processors |
|
3549 if (ActiveProcessorCount > 0) { |
|
3550 log_trace(os)("active_processor_count: " |
|
3551 "active processor count set by user : %d", |
|
3552 ActiveProcessorCount); |
|
3553 return ActiveProcessorCount; |
|
3554 } |
|
3555 |
3548 int online_cpus = ::sysconf(_SC_NPROCESSORS_ONLN); |
3556 int online_cpus = ::sysconf(_SC_NPROCESSORS_ONLN); |
3549 assert(online_cpus > 0 && online_cpus <= processor_count(), "sanity check"); |
3557 assert(online_cpus > 0 && online_cpus <= processor_count(), "sanity check"); |
3550 return online_cpus; |
3558 return online_cpus; |
3551 } |
3559 } |
3552 |
3560 |