mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8146115: Improve docker container detection and resource configuration usage
Reviewed-by: dholmes, kbarrett, phh
This commit is contained in:
parent
2f84103a78
commit
20a8de0f70
15 changed files with 899 additions and 13 deletions
|
@ -3477,6 +3477,14 @@ void os::make_polling_page_readable(void) {
|
|||
}
|
||||
|
||||
int os::active_processor_count() {
|
||||
// User has overridden the number of active processors
|
||||
if (ActiveProcessorCount > 0) {
|
||||
log_trace(os)("active_processor_count: "
|
||||
"active processor count set by user : %d",
|
||||
ActiveProcessorCount);
|
||||
return ActiveProcessorCount;
|
||||
}
|
||||
|
||||
return _processor_count;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue