You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ee92b33
Browse filesBrowse the repository at this point in the historyBrowse files
// first see if the segment was abandoned and if we can reclaim it into our thread
239
-
if (mi_option_is_enabled(mi_option_abandoned_reclaim_on_free) &&
239
+
if (_mi_option_get_fast(mi_option_abandoned_reclaim_on_free)!=0&&
240
240
#ifMI_HUGE_PAGE_ABANDON
241
241
segment->page_kind!=MI_PAGE_HUGE&&
242
242
#endif
243
-
mi_atomic_load_relaxed(&segment->thread_id) ==0)
243
+
mi_atomic_load_relaxed(&segment->thread_id) ==0&&// segment is abandoned?
244
+
mi_prim_get_default_heap() != (mi_heap_t*)&_mi_heap_empty) // and we did not already exit this thread (without this check, a fresh heap will be initalized (issue #944))
244
245
{
245
246
// the segment is abandoned, try to reclaim it into our heap
246
247
if (_mi_segment_attempt_reclaim(mi_heap_get_default(), segment)) {
0 commit comments