diff options
Diffstat (limited to 'gnu/llvm/compiler-rt/lib/scudo/standalone/quarantine.h')
-rw-r--r-- | gnu/llvm/compiler-rt/lib/scudo/standalone/quarantine.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/llvm/compiler-rt/lib/scudo/standalone/quarantine.h b/gnu/llvm/compiler-rt/lib/scudo/standalone/quarantine.h index 406a0e23804..27aa4bfec91 100644 --- a/gnu/llvm/compiler-rt/lib/scudo/standalone/quarantine.h +++ b/gnu/llvm/compiler-rt/lib/scudo/standalone/quarantine.h @@ -187,7 +187,12 @@ public: Cache.initLinkerInitialized(); } void init(uptr Size, uptr CacheSize) { - memset(this, 0, sizeof(*this)); + CacheMutex.init(); + Cache.init(); + RecycleMutex.init(); + MinSize = {}; + MaxSize = {}; + MaxCacheSize = {}; initLinkerInitialized(Size, CacheSize); } |