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

Function main

3rd/mimalloc-2.0.9/test/main-override.cpp:45–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44
45int main() {
46 mi_stats_reset(); // ignore earlier allocations
47 heap_thread_free_huge();
48 /*
49 heap_thread_free_large();
50 heap_no_delete();
51 heap_late_free();
52 padding_shrink();
53 various_tests();
54 large_alloc();
55 tsan_numa_test();
56 strdup_test();
57 */
58 test_stl_allocators();
59 test_mt_shutdown();
60
61 //fail_aslr();
62 bench_alloc_large();
63 mi_stats_print(NULL);
64 return 0;
65}
66
67static void* p = malloc(8);
68

Callers

nothing calls this directly

Calls 6

mi_stats_resetFunction · 0.85
heap_thread_free_hugeFunction · 0.85
test_stl_allocatorsFunction · 0.85
test_mt_shutdownFunction · 0.85
bench_alloc_largeFunction · 0.85
mi_stats_printFunction · 0.85

Tested by

no test coverage detected