mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-12 22:24:58 +03:00
fix link error to _mi_bin with C++; issue #533
This commit is contained in:
parent
6401c6325a
commit
a4303c6931
3 changed files with 12 additions and 8 deletions
|
@ -484,7 +484,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);
|
||||
mi_block_t* const block = (mi_block_t*)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
|
||||
if (mi_unlikely(mi_check_is_double_free(page,block))) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue