[scudo] Fix use of ScopedDisableMemoryTagChecks in test

This commit is contained in:
Vitaly Buka 2021-06-23 23:52:47 -07:00
parent f0d0612476
commit 99ec78c0fe
1 changed files with 4 additions and 1 deletions

View File

@ -11,6 +11,7 @@
#include <atomic>
#include <condition_variable>
#include <memory>
#include <mutex>
#include <thread>
#include <vector>
@ -111,7 +112,9 @@ TEST(ScudoWrappersCppTest, ThreadedNew) {
#if !SCUDO_ANDROID
// TODO: Investigate why libc sometimes crashes with tag missmatch in
// __pthread_clockjoin_ex.
scudo::ScopedDisableMemoryTagChecks NoTags;
std::unique_ptr<scudo::ScopedDisableMemoryTagChecks> NoTags;
if (scudo::systemSupportsMemoryTagging())
NoTags = std::make_unique<scudo::ScopedDisableMemoryTagChecks>();
#endif
Ready = false;
std::thread Threads[32];