MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / _mi_ptr_page

Function _mi_ptr_page

3rd/mimalloc-2.0.9/include/mimalloc-internal.h:516–518  ·  view source on GitHub ↗

Get the page containing the pointer

Source from the content-addressed store, hash-verified

514
515// Get the page containing the pointer
516static inline mi_page_t* _mi_ptr_page(void* p) {
517 return _mi_segment_page_of(_mi_ptr_segment(p), p);
518}
519
520// Get the block size of a page (special case for huge objects)
521static inline size_t mi_page_block_size(const mi_page_t* page) {

Callers 6

alloc.cFile · 0.85
_mi_segment_page_startFunction · 0.85
alloc-aligned.cFile · 0.85
mi_page_list_countFunction · 0.85
_mi_page_abandonFunction · 0.85

Calls 2

_mi_segment_page_ofFunction · 0.85
_mi_ptr_segmentFunction · 0.85

Tested by

no test coverage detected