mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-08 08:19:31 +03:00
fix duplicate definition (issue #652
This commit is contained in:
parent
afb5468ded
commit
6988bbcca0
1 changed files with 0 additions and 13 deletions
|
@ -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()
|
static void test_mt_shutdown()
|
||||||
{
|
{
|
||||||
const int threads = 5;
|
const int threads = 5;
|
||||||
|
|
Loading…
Add table
Reference in a new issue