[PATCH] D29993: Use pthreads to store current thread id on darwin
Kuba (Brecka) Mracek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 16 19:07:21 PST 2017
kubamracek added inline comments.
================
Comment at: lib/lsan/lsan_common_mac.cc:40
+ if (ptr == NULL) {
+ ptr = (thread_local_data_t *)InternalAlloc(sizeof(*ptr));
pthread_setspecific(key, ptr);
----------------
Oh, wait, we need a memset(0) + `current_thread_id = kInvalidTid` here or something like that.
https://reviews.llvm.org/D29993
More information about the llvm-commits
mailing list