Skip to content

Commit c0d28b5

Browse files
committed
[compiler-rt] [NSan] leave BufferedStackTrace uninit
Otherwise we have to memset 2040 bytes (255 * 8) for each call Pull Request: llvm#102254
1 parent 105cae5 commit c0d28b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/nsan/nsan.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ int32_t checkFT(const FT value, ShadowFT Shadow, CheckTypeT CheckType,
470470

471471
if (!flags().disable_warnings) {
472472
GET_CALLER_PC_BP;
473-
BufferedStackTrace stack;
473+
UNINITIALIZED BufferedStackTrace stack;
474474
stack.Unwind(pc, bp, nullptr, false);
475475
if (GetSuppressionForStack(&stack, CheckKind::Consistency)) {
476476
// FIXME: optionally print.
@@ -637,7 +637,7 @@ void fCmpFailFT(const FT Lhs, const FT Rhs, ShadowFT LhsShadow,
637637
}
638638

639639
GET_CALLER_PC_BP;
640-
BufferedStackTrace stack;
640+
UNINITIALIZED BufferedStackTrace stack;
641641
stack.Unwind(pc, bp, nullptr, false);
642642

643643
if (GetSuppressionForStack(&stack, CheckKind::Fcmp)) {

0 commit comments

Comments
 (0)