Mercurial > hg > graal-jvmci-8
changeset 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 | 9c85559fef58 |
children | ea6f94ab283b |
files | src/os/linux/vm/os_linux.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/os/linux/vm/os_linux.cpp Thu Sep 14 14:30:27 2017 +0200 +++ b/src/os/linux/vm/os_linux.cpp Mon Sep 18 18:02:23 2017 +0200 @@ -2859,7 +2859,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);