Mercurial > hg > graal-jvmci-8
comparison src/os/linux/vm/os_linux.cpp @ 24233:8128b98d4736 jvmci-0.36
Crash in rebuild_cpu_to_node_map (JDK-8165153)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 18 Sep 2017 18:02:23 +0200 |
parents | 719853999215 |
children |
comparison
equal
deleted
inserted
replaced
24232:9c85559fef58 | 24233:8128b98d4736 |
---|---|
2857 // is a subject to change (in libnuma version 2 the requirements | 2857 // is a subject to change (in libnuma version 2 the requirements |
2858 // are more reasonable) we'll just hardcode the number they use | 2858 // are more reasonable) we'll just hardcode the number they use |
2859 // in the library. | 2859 // in the library. |
2860 const size_t BitsPerCLong = sizeof(long) * CHAR_BIT; | 2860 const size_t BitsPerCLong = sizeof(long) * CHAR_BIT; |
2861 | 2861 |
2862 size_t cpu_num = os::active_processor_count(); | 2862 size_t cpu_num = processor_count(); |
2863 size_t cpu_map_size = NCPUS / BitsPerCLong; | 2863 size_t cpu_map_size = NCPUS / BitsPerCLong; |
2864 size_t cpu_map_valid_size = | 2864 size_t cpu_map_valid_size = |
2865 MIN2((cpu_num + BitsPerCLong - 1) / BitsPerCLong, cpu_map_size); | 2865 MIN2((cpu_num + BitsPerCLong - 1) / BitsPerCLong, cpu_map_size); |
2866 | 2866 |
2867 cpu_to_node()->clear(); | 2867 cpu_to_node()->clear(); |