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

Function main

3rd/mimalloc-2.0.9/test/main.c:25–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25int main() {
26 void* p1 = mi_malloc(16);
27 void* p2 = mi_malloc(1000000);
28 mi_free(p1);
29 mi_free(p2);
30 p1 = mi_malloc(16);
31 p2 = mi_malloc(16);
32 mi_free(p1);
33 mi_free(p2);
34
35 test_heap(mi_malloc(32));
36
37 p1 = mi_malloc_aligned(64, 16);
38 p2 = mi_malloc_aligned(160,24);
39 mi_free(p2);
40 mi_free(p1);
41 //test_large();
42
43 mi_collect(true);
44 mi_stats_print(NULL);
45 return 0;
46}

Callers

nothing calls this directly

Calls 6

mi_mallocFunction · 0.85
mi_freeFunction · 0.85
test_heapFunction · 0.85
mi_malloc_alignedFunction · 0.85
mi_collectFunction · 0.85
mi_stats_printFunction · 0.85

Tested by

no test coverage detected