mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 16:26:36 +00:00
[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:
parent
76248da8af
commit
21648d3228
@ -19,7 +19,7 @@ namespace __dsan {
|
|||||||
static Context *ctx;
|
static Context *ctx;
|
||||||
|
|
||||||
static u32 CurrentStackTrace(Thread *thr, uptr skip) {
|
static u32 CurrentStackTrace(Thread *thr, uptr skip) {
|
||||||
BufferedStackTrace stack;
|
UNINITIALIZED BufferedStackTrace stack;
|
||||||
thr->ignore_interceptors = true;
|
thr->ignore_interceptors = true;
|
||||||
stack.Unwind(1000, 0, 0, 0, 0, 0, false);
|
stack.Unwind(1000, 0, 0, 0, 0, 0, false);
|
||||||
thr->ignore_interceptors = false;
|
thr->ignore_interceptors = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user