merge from dev

This commit is contained in:
daan 2022-11-07 16:48:00 -08:00
commit 89ba6cc2fa
5 changed files with 58 additions and 28 deletions

View file

@ -522,6 +522,10 @@ static inline size_t mi_page_block_size(const mi_page_t* page) {
}
}
static inline bool mi_page_is_huge(const mi_page_t* page) {
return (_mi_page_segment(page)->kind == MI_SEGMENT_HUGE);
}
// Get the usable block size of a page without fixed padding.
// This may still include internal padding due to alignment and rounding up size classes.
static inline size_t mi_page_usable_block_size(const mi_page_t* page) {