8165153: Crash in rebuild_cpu_to_node_map
authordholmes
Wed, 07 Sep 2016 16:43:32 -0400
changeset 40929 de043f8e5c04
parent 40926 2fd1cf3e70e9
child 40930 3ef70f1039da
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
hotspot/src/os/linux/vm/os_linux.cpp
--- 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);