mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
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:
parent
df82338d8a
commit
f3d83e5fa6
5 changed files with 8 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue