Searched refs:round_up_to_page_bytes (Results 1 – 1 of 1) sorted by relevance
76 static size_t round_up_to_page_bytes(size_t capacity) { in round_up_to_page_bytes() function in __anon0ca2bf2e0111::AtexitArray82 size_t result = round_up_to_page_bytes(MAX(1, capacity * 2)) / sizeof(AtexitEntry); in next_capacity()89 return round_up_to_page_bytes(size_ - extracted_count_) < round_up_to_page_bytes(size_); in needs_recompaction()146 size_t old_bytes = round_up_to_page_bytes(size_); in recompact()147 size_t new_bytes = round_up_to_page_bytes(dst); in recompact()163 if (mprotect(array_, round_up_to_page_bytes(capacity_), prot) != 0) { in set_writable()170 const size_t new_capacity_bytes = round_up_to_page_bytes(new_capacity); in expand_capacity()178 mremap(array_, round_up_to_page_bytes(capacity_), new_capacity_bytes, MREMAP_MAYMOVE); in expand_capacity()