mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-02 01:34:38 +03:00
fix double assignment (#125, by @ebudai)
This commit is contained in:
parent
f646cc925d
commit
ccc78302bf
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ static void mi_page_thread_free_collect(mi_page_t* page)
|
|||
mi_thread_free_t tfree;
|
||||
mi_thread_free_t tfreex;
|
||||
do {
|
||||
tfreex = tfree = page->thread_free;
|
||||
tfree = page->thread_free;
|
||||
head = mi_tf_block(tfree);
|
||||
tfreex = mi_tf_set_block(tfree,NULL);
|
||||
} while (!mi_atomic_compare_exchange((volatile uintptr_t*)&page->thread_free, tfreex, tfree));
|
||||
|
|
Loading…
Add table
Reference in a new issue