| commit | 0dd618b72363cd1bb4020ce72c4f7b603a5ce96b | [log] [tgz] |
|---|---|---|
| author | Asiri Rathnayake <asiri.rathnayake@arm.com> | Fri Jun 03 08:45:26 2016 +0000 |
| committer | Asiri Rathnayake <asiri.rathnayake@arm.com> | Fri Jun 03 08:45:26 2016 +0000 |
| tree | 13498c2202822fd744e707cfcb9d8b23b61abcda | |
| parent | 3bf0d98eb1a4a04a41413790e9aa52eb5ab7ea64 [diff] |
[libcxx] Fix thread join.pass.cpp segfault after r271475 Some pthread implementations do not like being called pthead_join() with the pthread_t argument set to 0, and causes a segfault. This patch fixes this issue by validating the pthread_t argument before invoking pthread_join(). NFC. Differential revision: http://reviews.llvm.org/D20929 Change-Id: Ief817c57bd0e1f43cbaa03061e02417d6a180c38 Reviewers: EricWF git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@271634 91177308-0d34-0410-b5e6-96231b3b80d8