diff --git a/compiler-rt/lib/scudo/standalone/tests/wrappers_cpp_test.cpp b/compiler-rt/lib/scudo/standalone/tests/wrappers_cpp_test.cpp index 24fbf277e032..461c8649eb52 100644 --- a/compiler-rt/lib/scudo/standalone/tests/wrappers_cpp_test.cpp +++ b/compiler-rt/lib/scudo/standalone/tests/wrappers_cpp_test.cpp @@ -109,13 +109,12 @@ static void stressNew() { } TEST(ScudoWrappersCppTest, ThreadedNew) { -#if !SCUDO_ANDROID // TODO: Investigate why libc sometimes crashes with tag missmatch in // __pthread_clockjoin_ex. std::unique_ptr NoTags; - if (scudo::systemSupportsMemoryTagging()) + if (scudo::systemSupportsMemoryTagging() && !SCUDO_ANDROID) NoTags = std::make_unique(); -#endif + Ready = false; std::thread Threads[32]; for (size_t I = 0U; I < sizeof(Threads) / sizeof(Threads[0]); I++)