[PATCH] [sanitizer] Change the way GetThreadStackAndTls() obtains the thread descriptor address.
Dmitry Vyukov
dvyukov at google.com
Tue May 28 09:57:41 PDT 2013
================
Comment at: lib/sanitizer_common/tests/sanitizer_linux_test.cc:206
@@ +205,3 @@
+TEST(SanitizerLinux, ThreadSelfOffset) {
+ EXPECT_EQ(*(uptr *)((char *)ThreadSelf() + ThreadSelfOffset()), ThreadSelf());
+ pthread_t tid;
----------------
call thread_self_offset_test_func() here
http://llvm-reviews.chandlerc.com/D879
BRANCH
feat/sanitizer/no-arch-prctl
ARCANIST PROJECT
compiler-rt
More information about the llvm-commits
mailing list