[compiler-rt] [scudo] Fix c wrappers double free test. (PR #148066)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 11 22:10:11 PDT 2025
ChiaHungDuan wrote:
> NOTE: Scudo should be checked to make sure that the TSD is not always returning pointers in the same order they are freed. Although this appears to be a problem with a program that only does a small number of allocations.
Currently, the order is FIFO and one reason behind this can be the locality. For small blocks, I guess it could be fine if we change the order a little bit. Like LIFO (make the cache work like a circular buffer). If we want something more complicated, it will add some latency to free and I'm not sure how big the impact is.
https://github.com/llvm/llvm-project/pull/148066
More information about the llvm-commits
mailing list