mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-04 22:49:32 +03:00
fix numa node check in regions
This commit is contained in:
parent
6ccfb5a93e
commit
13f5e6e43e
1 changed files with 1 additions and 1 deletions
|
@ -282,7 +282,7 @@ static bool mi_region_is_suitable(int numa_node, size_t idx, bool commit, bool a
|
|||
if (m == MI_BITMAP_FIELD_FULL) return false;
|
||||
if (numa_node >= 0) { // use negative numa node to always succeed
|
||||
int rnode = ((int)mi_atomic_read_relaxed(®ions->numa_node)) - 1;
|
||||
if (rnode != numa_node) return false;
|
||||
if (rnode >= 0 && rnode != numa_node) return false;
|
||||
}
|
||||
if (commit && allow_large) return true; // always ok
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue