mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-01-15 09:38:00 +08:00
Merge branch 'dev' into dev-slice
This commit is contained in:
commit
03526e5535
@ -511,7 +511,7 @@ size_t mi_get_current_threadid(void) mi_attr_noexcept {
|
||||
}
|
||||
|
||||
// Free a block passing the current thread id explicitly
|
||||
void mi_unsafe_free_with_threadid(void* p, size_t current_tid ) mi_attr_noexcept
|
||||
void mi_decl_noinline mi_unsafe_free_with_threadid(void* p, size_t current_tid ) mi_attr_noexcept
|
||||
{
|
||||
mi_assert(current_tid == _mi_thread_id());
|
||||
_mi_free_with_threadid(p,current_tid);
|
||||
@ -519,7 +519,7 @@ void mi_unsafe_free_with_threadid(void* p, size_t current_tid ) mi_attr_noexcept
|
||||
|
||||
|
||||
// Free a block
|
||||
void mi_free(void* p) mi_attr_noexcept {
|
||||
void mi_decl_noinline mi_free(void* p) mi_attr_noexcept {
|
||||
_mi_free_with_threadid(p, _mi_thread_id());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user