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

Function heap_no_delete_worker

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

Issue #202

Source from the content-addressed store, hash-verified

185
186// Issue #202
187static void heap_no_delete_worker() {
188 mi_heap_t* heap = mi_heap_new();
189 void* q = mi_heap_malloc(heap, 1024); (void)(q);
190 // mi_heap_delete(heap); // uncomment to prevent assertion
191}
192
193static void heap_no_delete() {
194 auto t1 = std::thread(heap_no_delete_worker);

Callers

nothing calls this directly

Calls 2

mi_heap_newFunction · 0.85
mi_heap_mallocFunction · 0.85

Tested by

no test coverage detected