[compiler-rt] 21648d3 - [compiler-rt] [TSan] leave BufferedStackTrace uninit
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 7 15:19:52 PDT 2024
Author: Florian Mayer
Date: 2024-08-07T15:19:27-07:00
New Revision: 21648d3228370fb6ca1838c084f7c6ced6df4307
URL: https://github.com/llvm/llvm-project/commit/21648d3228370fb6ca1838c084f7c6ced6df4307
DIFF: https://github.com/llvm/llvm-project/commit/21648d3228370fb6ca1838c084f7c6ced6df4307.diff
LOG: [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
Added:
Modified:
compiler-rt/lib/tsan/dd/dd_rtl.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/tsan/dd/dd_rtl.cpp b/compiler-rt/lib/tsan/dd/dd_rtl.cpp
index 35b367c0cecb0..0ac6d321894b3 100644
--- a/compiler-rt/lib/tsan/dd/dd_rtl.cpp
+++ b/compiler-rt/lib/tsan/dd/dd_rtl.cpp
@@ -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;
More information about the llvm-commits
mailing list