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

Function heap_thread_free_large

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

Source from the content-addressed store, hash-verified

236}
237
238static void heap_thread_free_large() {
239 for (int i = 0; i < 100; i++) {
240 shared_p = mi_malloc_aligned(2 * 1024 * 1024 + 1, 8);
241 auto t1 = std::thread(heap_thread_free_large_worker);
242 t1.join();
243 }
244}
245
246static void heap_thread_free_huge_worker() {
247 mi_free(shared_p);

Callers

nothing calls this directly

Calls 3

mi_malloc_alignedFunction · 0.85
threadClass · 0.85
joinMethod · 0.45

Tested by

no test coverage detected