PA: Add finch feature flag to enable/disable FreeWithSize
Clang supports a sized version of operator delete. Providing the
allocation size at deallocation time allows memory allocators to
potentially skip a metadata lookup to determine the size of the object
being freed. For PartitionAlloc, leveraging this size information could
improve performance by avoiding unnecessary lookups and improving cache
efficiency.
This CL implements finch feature flag to enable or disable FreeWithSize.
If the flag is disabled, FreeWithSizeInline is redirected to FreeInline.
Bug: 410190984
Change-Id: Ia9a7e3f27a5a5e5f5af10ec6c92566a568d8e60a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7201387
Reviewed-by: Mikihito Matsuura <[email protected]>
Reviewed-by: Stephen Nusko <[email protected]>
Reviewed-by: Takashi Sakamoto <[email protected]>
Commit-Queue: Ayumi Ono <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1550808}
NOKEYCHECK=True
GitOrigin-RevId: c8b6d6b9a81f1069e407f8ded267cab5f46d5db0
5 files changed