mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
fix concurrent mi_tld access bug
This commit is contained in:
parent
4aeb2e1005
commit
13ee94cef6
3 changed files with 21 additions and 12 deletions
|
@ -551,6 +551,7 @@ static mi_page_t* mi_arena_page_try_find_abandoned(size_t slice_count, size_t bl
|
|||
|
||||
// any abandoned in our size class?
|
||||
mi_subproc_t* const subproc = tld->subproc;
|
||||
mi_assert_internal(subproc != NULL);
|
||||
if (mi_atomic_load_relaxed(&subproc->abandoned_count[bin]) == 0) return NULL;
|
||||
|
||||
// search arena's
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue