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

Function _mi_page_segment

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

Segment belonging to a page

Source from the content-addressed store, hash-verified

480
481// Segment belonging to a page
482static inline mi_segment_t* _mi_page_segment(const mi_page_t* page) {
483 mi_segment_t* segment = _mi_ptr_segment(page);
484 mi_assert_internal(segment == NULL || ((mi_slice_t*)page >= segment->slices && (mi_slice_t*)page < segment->slices + segment->slice_entries));
485 return segment;
486}
487
488static inline mi_slice_t* mi_slice_first(const mi_slice_t* slice) {
489 mi_slice_t* start = (mi_slice_t*)((uint8_t*)slice - slice->slice_offset);

Callers 15

_mi_free_block_mtFunction · 0.85
_mi_segment_page_freeFunction · 0.85
_mi_segment_page_abandonFunction · 0.85
segment.cFile · 0.85
mi_page_queue_pushFunction · 0.85
mi_heap_page_is_validFunction · 0.85
mi_heap_page_check_ownedFunction · 0.85
mi_heap_visit_areas_pageFunction · 0.85
mi_page_list_is_validFunction · 0.85

Calls 1

_mi_ptr_segmentFunction · 0.85

Tested by

no test coverage detected