mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-08-27 17:54:47 +03:00
further optimize mi_bchunk_try_find_and_clearNX
This commit is contained in:
parent
64aaf9d88f
commit
7931678899
4 changed files with 17 additions and 11 deletions
|
@ -137,7 +137,7 @@ bool _mi_page_is_valid(mi_page_t* page) {
|
|||
Page collect the `local_free` and `thread_free` lists
|
||||
----------------------------------------------------------- */
|
||||
|
||||
static void mi_page_thread_collect_to_local(mi_page_t* page, mi_block_t* head)
|
||||
static mi_decl_noinline void mi_page_thread_collect_to_local(mi_page_t* page, mi_block_t* head)
|
||||
{
|
||||
if (head == NULL) return;
|
||||
|
||||
|
@ -167,7 +167,7 @@ static void mi_page_thread_collect_to_local(mi_page_t* page, mi_block_t* head)
|
|||
}
|
||||
|
||||
// Collect the local `thread_free` list using an atomic exchange.
|
||||
static void mi_page_thread_free_collect(mi_page_t* page)
|
||||
static mi_decl_noinline void mi_page_thread_free_collect(mi_page_t* page)
|
||||
{
|
||||
// atomically capture the thread free list
|
||||
mi_block_t* head;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue