summaryrefslogtreecommitdiff
path: root/gnu/llvm/compiler-rt/lib/scudo/standalone/quarantine.h
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/llvm/compiler-rt/lib/scudo/standalone/quarantine.h')
-rw-r--r--gnu/llvm/compiler-rt/lib/scudo/standalone/quarantine.h7
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);
}