mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-24 13:24:27 +02:00
8165153: Crash in rebuild_cpu_to_node_map
Use processor_count(), not active_processor_count() to determine physical number of CPUs Reviewed-by: rehn, cjplummer
This commit is contained in:
parent
a900715bbf
commit
1a8f8e22f1
1 changed files with 1 additions and 1 deletions
|
@ -2875,7 +2875,7 @@ void os::Linux::rebuild_cpu_to_node_map() {
|
|||
// in the library.
|
||||
const size_t BitsPerCLong = sizeof(long) * CHAR_BIT;
|
||||
|
||||
size_t cpu_num = os::active_processor_count();
|
||||
size_t cpu_num = processor_count();
|
||||
size_t cpu_map_size = NCPUS / BitsPerCLong;
|
||||
size_t cpu_map_valid_size =
|
||||
MIN2((cpu_num + BitsPerCLong - 1) / BitsPerCLong, cpu_map_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue