[compiler-rt] [TSan] leave BufferedStackTrace uninit

Otherwise we have to memset 2040 bytes (255 * 8) for each call

Pull Request: https://github.com/llvm/llvm-project/pull/102255
This commit is contained in:
Florian Mayer 2024-08-06 16:51:06 -07:00
parent 76248da8af
commit 21648d3228

View File

@ -19,7 +19,7 @@ namespace __dsan {
static Context *ctx;
static u32 CurrentStackTrace(Thread *thr, uptr skip) {
BufferedStackTrace stack;
UNINITIALIZED BufferedStackTrace stack;
thr->ignore_interceptors = true;
stack.Unwind(1000, 0, 0, 0, 0, 0, false);
thr->ignore_interceptors = false;