Mercurial > hg > openjdk > jdk8u > hotspot
changeset 8450:c5ff0a4b9532
8165153: Crash in rebuild_cpu_to_node_map
Summary: use processor_count(), not active_processor_count() to determine physical number of CPUs
Reviewed-by: rehn, cjplummer
author | dholmes |
---|---|
date | Wed, 07 Sep 2016 16:43:32 -0400 |
parents | 9187473df31d |
children | 072770c9a6b9 |
files | src/os/linux/vm/os_linux.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/os/linux/vm/os_linux.cpp Thu Sep 22 02:04:40 2016 -0700 +++ b/src/os/linux/vm/os_linux.cpp Wed Sep 07 16:43:32 2016 -0400 @@ -2854,7 +2854,7 @@ // 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);