[scudo] Add initialization for TSDRegistrySharedT

Fixes compilation on Android which has a TSDSharedRegistry object in the config.

Reviewed By: cryptoad, vitalybuka

Differential Revision: https://reviews.llvm.org/D101951
This commit is contained in:
Christopher Ferris 2021-05-05 19:00:30 -07:00 committed by Kostya Kortchinsky
parent ab90ae6f47
commit 6fac34251d

View File

@ -197,11 +197,11 @@ private:
return CurrentTSD;
}
atomic_u32 CurrentIndex;
u32 NumberOfTSDs;
u32 NumberOfCoPrimes;
u32 CoPrimes[TSDsArraySize];
bool Initialized;
atomic_u32 CurrentIndex = {};
u32 NumberOfTSDs = 0;
u32 NumberOfCoPrimes = 0;
u32 CoPrimes[TSDsArraySize] = {};
bool Initialized = false;
HybridMutex Mutex;
HybridMutex MutexTSDs;
TSD<Allocator> TSDs[TSDsArraySize];