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

Function if

3rd/mimalloc-2.0.9/src/segment.c:1606–1608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1604 page = mi_segment_huge_page_alloc(block_size,page_alignment,heap->arena_id,tld,os_tld);
1605 }
1606 else if (block_size <= MI_SMALL_OBJ_SIZE_MAX) {
1607 page = mi_segments_page_alloc(heap,MI_PAGE_SMALL,block_size,block_size,tld,os_tld);
1608 }
1609 else if (block_size <= MI_MEDIUM_OBJ_SIZE_MAX) {
1610 page = mi_segments_page_alloc(heap,MI_PAGE_MEDIUM,MI_MEDIUM_PAGE_SIZE,block_size,tld, os_tld);
1611 }

Callers

nothing calls this directly

Calls 1

mi_segments_page_allocFunction · 0.85

Tested by

no test coverage detected