[all-commits] [llvm/llvm-project] badda4: [libc] Linux threads - Set CLEAR_TID addr to 0 whe...
Siva Chandra via All-commits
all-commits at lists.llvm.org
Sun Jul 10 21:44:28 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: badda4ac3c489a8c8cccdad1f74b9308c350a9e0
https://github.com/llvm/llvm-project/commit/badda4ac3c489a8c8cccdad1f74b9308c350a9e0
Author: Siva Chandra Reddy <sivachandra at google.com>
Date: 2022-07-11 (Mon, 11 Jul 2022)
Changed paths:
M libc/src/__support/threads/linux/thread.cpp
Log Message:
-----------
[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.
More information about the All-commits
mailing list