src/os/linux/vm/os_linux.cpp

changeset 8620
65847ffbff14
parent 8619
3a38e441474d
child 8668
c49daa7f447f
equal deleted inserted replaced
8619:3a38e441474d 8620:65847ffbff14
2852 // is a subject to change (in libnuma version 2 the requirements 2852 // is a subject to change (in libnuma version 2 the requirements
2853 // are more reasonable) we'll just hardcode the number they use 2853 // are more reasonable) we'll just hardcode the number they use
2854 // in the library. 2854 // in the library.
2855 const size_t BitsPerCLong = sizeof(long) * CHAR_BIT; 2855 const size_t BitsPerCLong = sizeof(long) * CHAR_BIT;
2856 2856
2857 size_t cpu_num = os::active_processor_count(); 2857 size_t cpu_num = processor_count();
2858 size_t cpu_map_size = NCPUS / BitsPerCLong; 2858 size_t cpu_map_size = NCPUS / BitsPerCLong;
2859 size_t cpu_map_valid_size = 2859 size_t cpu_map_valid_size =
2860 MIN2((cpu_num + BitsPerCLong - 1) / BitsPerCLong, cpu_map_size); 2860 MIN2((cpu_num + BitsPerCLong - 1) / BitsPerCLong, cpu_map_size);
2861 2861
2862 cpu_to_node()->clear(); 2862 cpu_to_node()->clear();

mercurial