[PATCH] D50406: SafeStack: Delay thread stack clean-up

Vlad Tsyrklevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 7 14:05:40 PDT 2018


vlad.tsyrklevich added inline comments.


================
Comment at: lib/safestack/safestack.cc:162
+static thread_stack_ll *thread_stacks = nullptr;
+static pthread_mutex_t thread_stacks_mutex = PTHREAD_MUTEX_INITIALIZER;
+
----------------
Wasn't sure if I was allowed to use libpthread from a runtime. I think I could replace the mutex with the __atomic_exchange() built-in if I need to.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D50406





More information about the llvm-commits mailing list