mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 04:24:49 +02:00
8149184: os::is_server_class_machine() could return incorrect result if a host's cpu have a few logical cores
Reviewed-by: dsamersoff, dholmes
This commit is contained in:
parent
be21417b06
commit
75826ca4d5
1 changed files with 1 additions and 1 deletions
|
@ -1490,7 +1490,7 @@ bool os::is_server_class_machine() {
|
|||
if (logical_processors > 1) {
|
||||
const unsigned int physical_packages =
|
||||
os::active_processor_count() / logical_processors;
|
||||
if (physical_packages > server_processors) {
|
||||
if (physical_packages >= server_processors) {
|
||||
result = true;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue