We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3aa30e8 commit d44a6eaCopy full SHA for d44a6ea
compiler-rt/lib/xray/xray_allocator.h
@@ -71,8 +71,15 @@ template <size_t N> struct Allocator {
71
static constexpr auto BlockPtrCount =
72
(kCacheLineSize / sizeof(Block *)) - 1;
73
74
+ BlockLink() {
75
+ // Zero out Blocks.
76
+ // FIXME: Use a braced member initializer when we drop support for GCC
77
+ // 4.8.
78
+ internal_memset(Blocks, 0, sizeof(Blocks));
79
+ }
80
+
81
// FIXME: Align this to cache-line address boundaries?
- Block Blocks[BlockPtrCount]{};
82
+ Block Blocks[BlockPtrCount];
83
BlockLink *Prev = nullptr;
84
};
85
0 commit comments