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

Function mi_page_set_heap

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

Source from the content-addressed store, hash-verified

565}
566
567static inline void mi_page_set_heap(mi_page_t* page, mi_heap_t* heap) {
568 mi_assert_internal(mi_page_thread_free_flag(page) != MI_DELAYED_FREEING);
569 mi_atomic_store_release(&page->xheap,(uintptr_t)heap);
570}
571
572// Thread free flag helpers
573static inline mi_block_t* mi_tf_block(mi_thread_free_t tf) {

Callers 5

mi_segment_reclaimFunction · 0.85
_mi_page_abandonFunction · 0.85
_mi_page_freeFunction · 0.85
mi_page_initFunction · 0.85
mi_large_huge_page_allocFunction · 0.85

Calls 1

mi_page_thread_free_flagFunction · 0.85

Tested by

no test coverage detected