mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-03 14:09:31 +03:00
add comment
This commit is contained in:
parent
19339bde0a
commit
57a9c1656f
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ static inline mi_page_t* mi_validate_ptr_page(const void* p, const char* msg)
|
|||
void mi_free(void* p) mi_attr_noexcept
|
||||
{
|
||||
mi_page_t* const page = mi_validate_ptr_page(p,"mi_free");
|
||||
if mi_unlikely(page==NULL) return;
|
||||
if mi_unlikely(page==NULL) return; // page will be NULL if p==NULL
|
||||
mi_assert_internal(p!=NULL && page!=NULL);
|
||||
|
||||
const mi_threadid_t xtid = (_mi_prim_thread_id() ^ mi_page_xthread_id(page));
|
||||
|
|
Loading…
Add table
Reference in a new issue