Skip to content
Unverified Commit 54ddd076 authored by ChiaHungDuan's avatar ChiaHungDuan Committed by GitHub
Browse files

[scudo] Update header without read-modify-write operation (#66955)

We used to update the deallocated block with
atomic_compare_exchange_strong to ensure the concurrent double-free will
be detected. However, this operation incurs huge performance overhead
which takes over 50% execution time in deallocate(). Given that we
already have the checksum to guard the most double-free cases and other
block verifications in the primary allocator, use atomic-store instead.
parent 12866a2b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment