Files
clang-p2996/compiler-rt/test/rtsan/stack_suppressions.cpp.supp
Chris Apple 1efa6625ef [rtsan] Introduce function-name-matches suppression (#112108)
Introduces a new type of suppression:

1. function-name-matches - allows users to disable `malloc`, `free`,
`pthread_mutex_lock` or similar. This could be helpful if a user thinks
these are real-time safe on their OS. Also allows disabling of any
function marked [[blocking]].

This is useful as a **more performant "early outs" compared to the
`call-stack-contains` suppression**. `call-stack-contains` is inherently
VERY costly, needing to inspect every frame of every stack for a
matching string. This new suppression has an early out before we unwind
the stack.
2024-10-16 16:38:14 -07:00

6 lines
126 B
Plaintext

call-stack-contains:MallocViolation
call-stack-contains:std::*vector
function-name-matches:free
function-name-matches:Block*