[compiler-rt] [scudo] Add config option to modify get usable size behavior (PR #158710)

Christopher Ferris via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 31 12:10:56 PDT 2025


================
@@ -57,6 +57,10 @@ BASE_OPTIONAL(const bool, MaySupportMemoryTagging, false)
 // Disable the quarantine code.
 BASE_OPTIONAL(const bool, QuarantineDisabled, false)
 
+// If set to true, malloc_usable_size returns the exact size of the allocation.
+// If set to false, return the total available size in the allocation.
+BASE_OPTIONAL(const bool, ExactUsableSize, true)
----------------
cferris1000 wrote:

For now, I'd like to leave as a config option and see how it goes.

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


More information about the llvm-commits mailing list