merge from dev

This commit is contained in:
Daan 2022-01-22 13:09:18 -08:00
commit 3b93554ce6
7 changed files with 96 additions and 40 deletions

View file

@ -483,7 +483,7 @@ void mi_free(void* p) mi_attr_noexcept
mi_threadid_t tid = _mi_thread_id();
mi_page_t* const page = _mi_segment_page_of(segment, p);
if (mi_likely(tid == mi_atomic_load_relaxed(&segment->thread_id) && page->flags.full_aligned == 0)) { // the thread id matches and it is not a full page, nor has aligned blocks
// local, and not full or aligned
mi_block_t* block = (mi_block_t*)(p);