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
GitOrigin-RevId: 0a5576ecf05f810065b6562605f1cbe78fee2988
Change-Id: I4bcc7a4d8feb4bf4394eac0e3d93005ff0d02259
1 file changed