mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
bug fixes
This commit is contained in:
parent
8f2a5864b8
commit
1d7a9f62a5
6 changed files with 34 additions and 32 deletions
|
@ -598,7 +598,7 @@ static inline bool mi_page_mostly_used(const mi_page_t* page) {
|
|||
|
||||
static inline bool mi_page_is_abandoned(const mi_page_t* page) {
|
||||
// note: the xheap field of an abandoned heap is set to the subproc (for fast reclaim-on-free)
|
||||
return (mi_page_thread_id(page) == 0);
|
||||
return (mi_atomic_load_acquire(&page->xthread_id) == 0);
|
||||
}
|
||||
|
||||
static inline bool mi_page_is_huge(const mi_page_t* page) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue