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(); |