mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 23:39:31 +03:00
fix type
This commit is contained in:
parent
798827b179
commit
ad52fc1b7e
1 changed files with 1 additions and 1 deletions
2
src/os.c
2
src/os.c
|
@ -697,7 +697,7 @@ Support NUMA aware allocation
|
||||||
static _Atomic(int) _mi_numa_node_count; // = 0 // cache the node count
|
static _Atomic(int) _mi_numa_node_count; // = 0 // cache the node count
|
||||||
|
|
||||||
int _mi_os_numa_node_count(void) {
|
int _mi_os_numa_node_count(void) {
|
||||||
size_t count = mi_atomic_load_acquire(&_mi_numa_node_count);
|
int count = mi_atomic_load_acquire(&_mi_numa_node_count);
|
||||||
if mi_unlikely(count <= 0) {
|
if mi_unlikely(count <= 0) {
|
||||||
long ncount = mi_option_get(mi_option_use_numa_nodes); // given explicitly?
|
long ncount = mi_option_get(mi_option_use_numa_nodes); // given explicitly?
|
||||||
if (ncount > 0 && ncount < INT_MAX) {
|
if (ncount > 0 && ncount < INT_MAX) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue