diff options
author | Dean Michael Berris <dberris@google.com> | 2016-12-06 06:58:15 +0000 |
---|---|---|
committer | Dean Michael Berris <dberris@google.com> | 2016-12-06 06:58:15 +0000 |
commit | a3589846797e2fe4dec349b32f99ebbe330aba2f (patch) | |
tree | cf26f5053628517b1342eeb9ac7e5555b45fe344 /lib/xray | |
parent | f9ca15b7d520dcefa689e684d7a99aff4d2a3999 (diff) |
[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
Diffstat (limited to 'lib/xray')
-rw-r--r-- | lib/xray/xray_buffer_queue.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xray/xray_buffer_queue.cc b/lib/xray/xray_buffer_queue.cc index 17878eb85..7e5462fb8 100644 --- a/lib/xray/xray_buffer_queue.cc +++ b/lib/xray/xray_buffer_queue.cc @@ -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; |