[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.

llvm-svn: 288776
This commit is contained in:
Dean Michael Berris 2016-12-06 06:58:15 +00:00
parent abe04e3295
commit 21e877c6d9
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@
using namespace __xray;
BufferQueue::BufferQueue(std::size_t B, std::size_t N)
: BufferSize(B), Buffers(N) {
: BufferSize(B), Buffers(N), Mutex(), OwnedBuffers(), Finalizing(false) {
for (auto &Buf : Buffers) {
void *Tmp = malloc(BufferSize);
Buf.Buffer = Tmp;