Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit a358984

Browse files
committed
[XRay][compiler-rt] Explicitly initialise members.
Before this, the change committed in D26232 might have an uninitialised std::atomic<bool> that may or may not have a valid state. On aarch64 this breaks consistently, while it doesn't manifest as a problem in x86_64. This is an attempt to un-break this in aarch64. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@288776 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent f9ca15b commit a358984

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/xray/xray_buffer_queue.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
using namespace __xray;
2020

2121
BufferQueue::BufferQueue(std::size_t B, std::size_t N)
22-
: BufferSize(B), Buffers(N) {
22+
: BufferSize(B), Buffers(N), Mutex(), OwnedBuffers(), Finalizing(false) {
2323
for (auto &Buf : Buffers) {
2424
void *Tmp = malloc(BufferSize);
2525
Buf.Buffer = Tmp;

0 commit comments

Comments
 (0)