diff options
author | Siva Chandra Reddy <sivachandra@google.com> | 2022-07-10 09:48:23 +0000 |
---|---|---|
committer | Siva Chandra Reddy <sivachandra@google.com> | 2022-07-11 04:42:59 +0000 |
commit | badda4ac3c489a8c8cccdad1f74b9308c350a9e0 (patch) | |
tree | 39a71df203a8401263b8cfb75c4a4df8b51d4106 /libcxx/include/__algorithm/iterator_operations.h | |
parent | 136d746ec7f43584f68c11d3ccc4088db4734d29 (diff) | |
download | llvm-badda4ac3c489a8c8cccdad1f74b9308c350a9e0.tar.gz |
[libc] Linux threads - Set CLEAR_TID addr to 0 when exiting a detached thread.
A detached thread cleans itself up at completion. So, the CLEAR_TID memory is
also gone by the time the kernel tries to signal potential waiters. By nulling
the CLEAR_TID address, we prevent the kernel from signalling at a non-existent
futex location.
Diffstat (limited to 'libcxx/include/__algorithm/iterator_operations.h')
0 files changed, 0 insertions, 0 deletions