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
@ -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…
x
Reference in New Issue
Block a user