[compiler-rt] [scudo] Move the trace point in releaseToOSMaybe (PR #159204)
Christopher Ferris via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 16 17:50:16 PDT 2025
================
@@ -1455,6 +1453,11 @@ uptr SizeClassAllocator64<Config>::releaseToOSMaybe(RegionInfo *Region,
// ==================================================================== //
// 4. Release the unused physical pages back to the OS.
// ==================================================================== //
+
+ // Only add trace point after it is determined that a release will occur to
+ // avoid incurring performance penalties.
+ SCUDO_SCOPED_TRACE(GetPrimaryReleaseToOSMaybeTraceName(ReleaseType));
----------------
cferris1000 wrote:
Done.
https://github.com/llvm/llvm-project/pull/159204
More information about the llvm-commits
mailing list