changeset 40929:de043f8e5c04

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 2fd1cf3e70e9
children 3ef70f1039da
files hotspot/src/os/linux/vm/os_linux.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/src/os/linux/vm/os_linux.cpp	Wed Sep 07 12:52:20 2016 -0400
+++ b/hotspot/src/os/linux/vm/os_linux.cpp	Wed Sep 07 16:43:32 2016 -0400
@@ -2875,7 +2875,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);