[libc-commits] [libc] [libc] Reset thread-specific key value before invoking destructor (PR #226134)

Pavel Labath via libc-commits libc-commits at lists.llvm.org
Tue Sep 29 04:06:14 PDT 2026


================
@@ -78,8 +78,57 @@ static void null_value_test() {
   ASSERT_EQ(LIBC_NAMESPACE::pthread_key_delete(key), 0);
 }
 
+static void *dtor_getspecific_val;
+static void dtor_verify_getspecific_nullptr(void *) {
+  dtor_getspecific_val = LIBC_NAMESPACE::pthread_getspecific(key);
+}
+
+static void *func_getspecific_nullptr(void *) {
----------------
labath wrote:

I've merged them, I don't expect them to change.

https://github.com/llvm/llvm-project/pull/226134


More information about the libc-commits mailing list