[compiler-rt] [scudo] Allow the quarantine code to be compiled out (PR #151064)
Christopher Ferris via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 30 17:55:02 PDT 2025
================
@@ -184,9 +184,10 @@ class Allocator {
const s32 ReleaseToOsIntervalMs = getFlags()->release_to_os_interval_ms;
Primary.init(ReleaseToOsIntervalMs);
Secondary.init(&Stats, ReleaseToOsIntervalMs);
- Quarantine.init(
- static_cast<uptr>(getFlags()->quarantine_size_kb << 10),
- static_cast<uptr>(getFlags()->thread_local_quarantine_size_kb << 10));
+ if (!AllocatorConfig::getQuarantineDisabled())
+ Quarantine.init(
+ static_cast<uptr>(getFlags()->quarantine_size_kb << 10),
+ static_cast<uptr>(getFlags()->thread_local_quarantine_size_kb << 10));
----------------
cferris1000 wrote:
Fixed.
https://github.com/llvm/llvm-project/pull/151064
More information about the llvm-commits
mailing list