[compiler-rt] 930ca76 - [compiler-rt] [Memprof] leave BufferedStackTrace uninit
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 7 15:19:54 PDT 2024
Author: Florian Mayer
Date: 2024-08-07T15:19:27-07:00
New Revision: 930ca768570fbe8789046a89478c995eb717c7c6
URL: https://github.com/llvm/llvm-project/commit/930ca768570fbe8789046a89478c995eb717c7c6
DIFF: https://github.com/llvm/llvm-project/commit/930ca768570fbe8789046a89478c995eb717c7c6.diff
LOG: [compiler-rt] [Memprof] leave BufferedStackTrace uninit
Otherwise we have to memset 2040 bytes (255 * 8) for each call
Pull Request: https://github.com/llvm/llvm-project/pull/102256
Added:
Modified:
compiler-rt/lib/memprof/memprof_stack.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/memprof/memprof_stack.h b/compiler-rt/lib/memprof/memprof_stack.h
index a8fdfc9def9d0..2a07019a71e5f 100644
--- a/compiler-rt/lib/memprof/memprof_stack.h
+++ b/compiler-rt/lib/memprof/memprof_stack.h
@@ -33,7 +33,7 @@ u32 GetMallocContextSize();
// don't want stack trace to contain functions from MemProf internals.
#define GET_STACK_TRACE(max_size, fast) \
- BufferedStackTrace stack; \
+ UNINITIALIZED BufferedStackTrace stack; \
if (max_size <= 2) { \
stack.size = max_size; \
if (max_size > 0) { \
More information about the llvm-commits
mailing list