[compiler-rt] [scudo] Add primary option to zero block on dealloc. (PR #142394)

Christopher Ferris via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 9 12:35:37 PDT 2025


================
@@ -53,6 +53,7 @@ template <typename Config> class SizeClassAllocator64 {
   static const uptr CompactPtrScale = Config::getCompactPtrScale();
   static const uptr RegionSizeLog = Config::getRegionSizeLog();
   static const uptr GroupSizeLog = Config::getGroupSizeLog();
+  static const bool ZeroOnDealloc = Config::getZeroOnDealloc();
----------------
cferris1000 wrote:

Don't add a variable for this, always use the config check directly.

https://github.com/llvm/llvm-project/pull/142394


More information about the llvm-commits mailing list