MCPcopy Create free account
hub / github.com/SergeyMakeev/smmalloc / mi_checked_ptr_segment

Function mi_checked_ptr_segment

extern/mimalloc/src/alloc.c:519–594  ·  view source on GitHub ↗

Get the segment data belonging to a pointer This is just a single `and` in assembly but does further checks in debug mode (and secure mode) if this was a valid pointer.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

mi_freeFunction · 0.85
_mi_usable_sizeFunction · 0.85

Calls 7

mi_unlikelyFunction · 0.85
_mi_error_messageFunction · 0.85
_mi_ptr_segmentFunction · 0.85
mi_is_in_heap_regionFunction · 0.85
_mi_warning_messageFunction · 0.85
_mi_ptr_cookieFunction · 0.85
_mi_free_genericFunction · 0.85

Tested by

no test coverage detected