scudo: Store header on deallocation before retagging memory.
From a cache perspective it's better to store the header immediately after loading it. If we delay this operation until after we've retagged it's more likely that our header will have been evicted from the cache and we'll need to fetch it again in order to perform the compare-exchange operation. For similar reasons, store the deallocation stack before retagging instead of afterwards. Differential Revision: https://reviews.llvm.org/D101137
parent
89c4dda0
Please register or sign in to comment