mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-20 14:09:32 +03:00
Update documentation
This commit is contained in:
parent
e30bd17ad6
commit
49afbc0821
1 changed files with 2 additions and 1 deletions
|
@ -740,10 +740,11 @@ void _mi_deferred_free(mi_heap_t* heap, bool force) {
|
|||
if (!heap->tld->recurse) {
|
||||
heap->tld->recurse = true;
|
||||
if (deferred_free != NULL) {
|
||||
// first we invoke global deferred free function (if it is defined).
|
||||
deferred_free(force, heap->tld->heartbeat, mi_atomic_load_ptr_relaxed(void,&deferred_arg));
|
||||
}
|
||||
if (heap->deferred_free != NULL) {
|
||||
// TODO: Should heap->deferred_free_arg be an atomic load?
|
||||
// invoke deferred free function that is defined to do deferred free on specific heap instance.
|
||||
(heap->deferred_free)(heap, force, heap->tld->heartbeat, heap->deferred_free_arg);
|
||||
}
|
||||
heap->tld->recurse = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue