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

Function _mi_os_alloc

3rd/mimalloc-2.0.9/src/os.c:807–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

805----------------------------------------------------------- */
806
807void* _mi_os_alloc(size_t size, mi_stats_t* tld_stats) {
808 MI_UNUSED(tld_stats);
809 mi_stats_t* stats = &_mi_stats_main;
810 if (size == 0) return NULL;
811 size = _mi_os_good_alloc_size(size);
812 bool is_large = false;
813 return mi_os_mem_alloc(size, 0, true, false, &is_large, stats);
814}
815
816void _mi_os_free_ex(void* p, size_t size, bool was_committed, mi_stats_t* tld_stats) {
817 MI_UNUSED(tld_stats);

Callers 2

mi_thread_data_allocFunction · 0.85
mi_manage_os_memory_exFunction · 0.85

Calls 2

_mi_os_good_alloc_sizeFunction · 0.85
mi_os_mem_allocFunction · 0.85

Tested by

no test coverage detected