| 248 | } |
| 249 | |
| 250 | static void heap_thread_free_huge() { |
| 251 | for (int i = 0; i < 100; i++) { |
| 252 | shared_p = mi_malloc(1024 * 1024 * 1024); |
| 253 | auto t1 = std::thread(heap_thread_free_huge_worker); |
| 254 | t1.join(); |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | static void test_mt_shutdown() |
| 259 | { |