fix eager commit on large pages (issue #182)

This commit is contained in:
daan 2020-01-02 17:25:00 -08:00
parent 1b5a08cd25
commit 9629a0190f

View file

@ -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;
} }