[PATCH] D45838: [sanitizer] More dead code removal
Kostya Kortchinsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 20 09:34:47 PDT 2018
cryptoad added a comment.
asan_test.cc leverages an intercepted prctl with the ThreadedTestFunc test which calls:
static bool TryToSetThreadName(const char *name) {
#if defined(__linux__) && defined(PR_SET_NAME)
return 0 == prctl(PR_SET_NAME, (unsigned long)name, 0, 0, 0);
#else
return false;
#endif
}
and checks the names to be right in the death message.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D45838
More information about the llvm-commits
mailing list