diff options
Diffstat (limited to 'compiler-rt/lib/asan/asan_stack.h')
| -rw-r--r-- | compiler-rt/lib/asan/asan_stack.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/asan_stack.h b/compiler-rt/lib/asan/asan_stack.h index 97aefd6d421..4b54e084f82 100644 --- a/compiler-rt/lib/asan/asan_stack.h +++ b/compiler-rt/lib/asan/asan_stack.h @@ -75,6 +75,10 @@ struct AsanStackTrace { } \ } \ +// NOTE: A Rule of thumb is to retrieve stack trace in the interceptors +// as early as possible (in functions exposed to the user), as we generally +// don't want stack trace to contain functions from ASan internals. + #define GET_STACK_TRACE_HERE(max_size, fast_unwind) \ GET_STACK_TRACE_WITH_PC_AND_BP(max_size, fast_unwind, \ AsanStackTrace::GetCurrentPc(), GET_CURRENT_FRAME()) \ |

