[compiler-rt] asan: refactor interceptor allocation/deallocation functions (PR #145087)
Mariusz Borsa via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 9 10:30:49 PDT 2025
================
@@ -1007,13 +1007,8 @@ void PrintInternalAllocatorStats() {
instance.PrintStats();
}
-void asan_free(void *ptr, BufferedStackTrace *stack, AllocType alloc_type) {
----------------
wrotki wrote:
What I like about this change is that it moves alloc_type parameter from asan_<alloc related> SPI layer down to implementation of asan_allocator, simplifying the SPI . I'm relatively rarely spelunking in this sanitizers allocator code (recently I am though for unrelated reasons), and it took me a while to understand what this alloc_type parameter is for.
https://github.com/llvm/llvm-project/pull/145087
More information about the llvm-commits
mailing list