insert full pages at the end of the queue; only override page candidate if the page is not too full

This commit is contained in:
Daan Leijen 2024-12-20 13:55:31 -08:00
parent df82338d8a
commit f3d83e5fa6
5 changed files with 8 additions and 7 deletions

View file

@ -571,7 +571,7 @@ static inline bool mi_page_immediate_available(const mi_page_t* page) {
}
// is more than 7/8th of a page in use?
static inline bool mi_page_mostly_used(const mi_page_t* page) {
static inline bool mi_page_is_mostly_used(const mi_page_t* page) {
if (page==NULL) return true;
uint16_t frac = page->reserved / 8U;
return (page->reserved - page->used <= frac);