[compiler-rt] asan: refactor interceptor allocation/deallocation functions (PR #145087)
David Justo via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 9 09:07:59 PDT 2025
================
@@ -1007,13 +1007,8 @@ void PrintInternalAllocatorStats() {
instance.PrintStats();
}
-void asan_free(void *ptr, BufferedStackTrace *stack, AllocType alloc_type) {
----------------
davidmrdavid wrote:
Thanks @jcking, this mostly makes sense. I understand you're mostly looking to keep a 1:1 relationship between user-level operators (new, free, free_sized, etc.) and their asan interceptors. This checks out.
What I don't understand is this comment:
> Right now memalign is used for all the AllocType and we are about to introduce FROM_ALIGNED_ALLOC
This doesn't seem 100% right now. As per your refactor, aren't all interceptors "right now"/today used for all `AllocType`? I don't understand what makes memaligned special.
https://github.com/llvm/llvm-project/pull/145087
More information about the llvm-commits
mailing list