[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:53:14 PDT 2025


================
@@ -34,6 +34,10 @@ SCUDO_FLAG(bool, delete_size_mismatch, true,
 
 SCUDO_FLAG(bool, zero_contents, false, "Zero chunk contents on allocation.")
 
+SCUDO_FLAG(bool, zero_on_dealloc, false,
----------------
cferris1000 wrote:

Is there already a plan to do this, or are you doing this speculatively? If speculatively, then I think you could just add this when you need it. I don't think it's a good idea to add things that may or may not ever be used.

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


More information about the llvm-commits mailing list