Skip to content

Commit 930ca76

Browse files
committed
[compiler-rt] [Memprof] leave BufferedStackTrace uninit
Otherwise we have to memset 2040 bytes (255 * 8) for each call Pull Request: #102256
1 parent 21648d3 commit 930ca76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/memprof/memprof_stack.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ u32 GetMallocContextSize();
3333
// don't want stack trace to contain functions from MemProf internals.
3434

3535
#define GET_STACK_TRACE(max_size, fast) \
36-
BufferedStackTrace stack; \
36+
UNINITIALIZED BufferedStackTrace stack; \
3737
if (max_size <= 2) { \
3838
stack.size = max_size; \
3939
if (max_size > 0) { \

0 commit comments

Comments
 (0)