fix duplicate definition (issue #652

This commit is contained in:
Daan Leijen 2022-11-27 12:01:56 -08:00
parent afb5468ded
commit 6988bbcca0

View File

@ -254,19 +254,6 @@ static void heap_thread_free_huge() {
}
}
static void heap_thread_free_huge_worker() {
mi_free(shared_p);
}
static void heap_thread_free_huge() {
for (int i = 0; i < 10; i++) {
shared_p = mi_malloc(1024 * 1024 * 1024);
auto t1 = std::thread(heap_thread_free_large_worker);
t1.join();
}
}
static void test_mt_shutdown()
{
const int threads = 5;