< prev index next >

src/os/linux/vm/os_linux.cpp

Print this page

        

*** 2873,2883 **** // is a subject to change (in libnuma version 2 the requirements // are more reasonable) we'll just hardcode the number they use // in the library. const size_t BitsPerCLong = sizeof(long) * CHAR_BIT; ! size_t cpu_num = os::active_processor_count(); size_t cpu_map_size = NCPUS / BitsPerCLong; size_t cpu_map_valid_size = MIN2((cpu_num + BitsPerCLong - 1) / BitsPerCLong, cpu_map_size); cpu_to_node()->clear(); --- 2873,2883 ---- // is a subject to change (in libnuma version 2 the requirements // are more reasonable) we'll just hardcode the number they use // in the library. const size_t BitsPerCLong = sizeof(long) * CHAR_BIT; ! 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); cpu_to_node()->clear();
< prev index next >