enable atomic yield when delayed_freeing is encountered

This commit is contained in:
daan 2020-01-22 20:12:42 -08:00
parent 0193a15f7e
commit 3bbbe6c686
2 changed files with 2 additions and 2 deletions

View file

@ -147,7 +147,7 @@ static void mi_heap_collect_ex(mi_heap_t* heap, mi_collect_t collect)
// collect all pages owned by this thread
mi_heap_visit_pages(heap, &mi_heap_page_collect, &collect, NULL);
mi_assert_internal( collect != ABANDON || heap->thread_delayed_free == NULL );
mi_assert_internal( collect != ABANDON || mi_atomic_read_ptr(mi_block_t,&heap->thread_delayed_free) == NULL );
// collect segment caches
if (collect >= FORCE) {