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 | 21e877c6d9e4361e99aec1fd00c4698a8c98de63 (patch) | |
| tree | cb38970f45af1eb97c62db10cb673e94765e3fe3 /compiler-rt/lib | |
| parent | abe04e3295450afd1b9e03a1b91cf87ee3725780 (diff) | |
| download | bcm5719-llvm-21e877c6d9e4361e99aec1fd00c4698a8c98de63.tar.gz bcm5719-llvm-21e877c6d9e4361e99aec1fd00c4698a8c98de63.zip | |
[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
Diffstat (limited to 'compiler-rt/lib')
| -rw-r--r-- | compiler-rt/lib/xray/xray_buffer_queue.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/xray/xray_buffer_queue.cc b/compiler-rt/lib/xray/xray_buffer_queue.cc index 17878eb85de..7e5462fb8e1 100644 --- a/compiler-rt/lib/xray/xray_buffer_queue.cc +++ b/compiler-rt/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; |

