diff options
author | Kostya Kortchinsky <kostyak@google.com> | 2017-05-26 15:39:22 +0000 |
---|---|---|
committer | Kostya Kortchinsky <kostyak@google.com> | 2017-05-26 15:39:22 +0000 |
commit | db18e4d99325fa7fe85d1e74b4d151fd4f756583 (patch) | |
tree | a162cddaed59610bf88e9fa9080ea333bd6e3c0c /llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp | |
parent | ec13ebf2c83118f83ca4f35fd938c0a5bcfdd38c (diff) | |
download | llvm-db18e4d99325fa7fe85d1e74b4d151fd4f756583.zip llvm-db18e4d99325fa7fe85d1e74b4d151fd4f756583.tar.gz llvm-db18e4d99325fa7fe85d1e74b4d151fd4f756583.tar.bz2 |
[scudo] Check the return values of the pthread_* functions
Summary:
Currently we are not enforcing the success of `pthread_once`, and
`pthread_setspecific`. Errors could lead to harder to debug issues later in
the thread's life. This adds checks for a 0 return value for both.
If `pthread_setspecific` fails in the teardown path, opt for an immediate
teardown as opposed to a fatal failure.
Reviewers: alekseyshl, kcc
Reviewed By: alekseyshl
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D33555
llvm-svn: 303998
Diffstat (limited to 'llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions