diff --git a/compiler-rt/test/profile/Inputs/instrprof-gcov-multithread_fork.cpp b/compiler-rt/test/profile/Inputs/instrprof-gcov-multithread_fork.cpp --- a/compiler-rt/test/profile/Inputs/instrprof-gcov-multithread_fork.cpp +++ b/compiler-rt/test/profile/Inputs/instrprof-gcov-multithread_fork.cpp @@ -1,27 +1,17 @@ #include #include #include -#include template void launcher(T func) { - std::vector pool; + auto t1 = std::thread(func); + auto t2 = std::thread(func); - for (int i = 0; i < 10; i++) { - pool.emplace_back(std::thread(func)); - } - - for (auto &t : pool) { - t.join(); - } + t1.join(); + t2.join(); } -void h() {} - -void g() { - fork(); - launcher<>(h); -} +void g() {} void f() { fork();