mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 23:19:31 +03:00
fix eager commit on large pages (issue #182)
This commit is contained in:
parent
1b5a08cd25
commit
9629a0190f
1 changed files with 7 additions and 7 deletions
|
@ -139,7 +139,7 @@ static bool mi_list_contains(const mi_page_t* page, const mi_block_t* list, cons
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static mi_decl_noinline bool mi_check_is_double_freex(const mi_page_t* page, const mi_block_t* block, const mi_block_t* n) {
|
static mi_decl_noinline bool mi_check_is_double_freex(const mi_page_t* page, const mi_block_t* block) {
|
||||||
// The decoded value is in the same page (or NULL).
|
// The decoded value is in the same page (or NULL).
|
||||||
// Walk the free lists to verify positively if it is already freed
|
// Walk the free lists to verify positively if it is already freed
|
||||||
if (mi_list_contains(page, page->free, block) ||
|
if (mi_list_contains(page, page->free, block) ||
|
||||||
|
@ -159,7 +159,7 @@ static inline bool mi_check_is_double_free(const mi_page_t* page, const mi_block
|
||||||
{
|
{
|
||||||
// Suspicous: decoded value a in block is in the same page (or NULL) -- maybe a double free?
|
// Suspicous: decoded value a in block is in the same page (or NULL) -- maybe a double free?
|
||||||
// (continue in separate function to improve code generation)
|
// (continue in separate function to improve code generation)
|
||||||
return mi_check_is_double_freex(page, block, n);
|
return mi_check_is_double_freex(page, block);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue