mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 15:29:31 +03:00
merge from dev
This commit is contained in:
commit
614c4944e5
1 changed files with 3 additions and 1 deletions
|
@ -82,7 +82,9 @@ static bool mi_arena_segment_os_clear_abandoned(mi_segment_t* segment, bool take
|
|||
segment->abandoned_os_prev = NULL;
|
||||
mi_atomic_decrement_relaxed(&subproc->abandoned_count);
|
||||
mi_atomic_decrement_relaxed(&subproc->abandoned_os_list_count);
|
||||
if (take_lock) { // don't reset the thread_id when iterating
|
||||
mi_atomic_store_release(&segment->thread_id, _mi_thread_id());
|
||||
}
|
||||
reclaimed = true;
|
||||
}
|
||||
if (take_lock) { mi_lock_release(&segment->subproc->abandoned_os_lock); }
|
||||
|
|
Loading…
Add table
Reference in a new issue