mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-08-27 17:54:47 +03:00
use thread local stats for abandoned statistics to reduce contention
This commit is contained in:
parent
b0c8d86c41
commit
8fc8da5d81
6 changed files with 44 additions and 17 deletions
|
@ -280,7 +280,7 @@ void _mi_page_abandon(mi_page_t* page, mi_page_queue_t* pq) {
|
|||
mi_page_queue_remove(pq, page);
|
||||
mi_tld_t* tld = page->heap->tld;
|
||||
mi_page_set_heap(page, NULL);
|
||||
_mi_arenas_page_abandon(page);
|
||||
_mi_arenas_page_abandon(page,tld);
|
||||
_mi_arenas_collect(false, false, tld); // allow purging
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue