mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-07 11:58:41 +03:00
reduce memory order constraints for better efficiency on ARM etc
This commit is contained in:
parent
116159cd40
commit
a9f46dc86f
3 changed files with 21 additions and 10 deletions
|
@ -159,7 +159,7 @@ static void _mi_page_thread_free_collect(mi_page_t* page)
|
|||
do {
|
||||
head = mi_tf_block(tfree);
|
||||
tfreex = mi_tf_set_block(tfree,NULL);
|
||||
} while (!mi_atomic_cas_weak(&page->xthread_free, &tfree, tfreex));
|
||||
} while (!mi_atomic_cas_weak_acq_rel(&page->xthread_free, &tfree, tfreex));
|
||||
|
||||
// return if the list is empty
|
||||
if (head == NULL) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue