[compiler-rt] r193409 - [sanitizer] Remove pthread_attr_getstackaddr interceptor.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Fri Oct 25 07:27:00 PDT 2013
Author: eugenis
Date: Fri Oct 25 09:27:00 2013
New Revision: 193409
URL: http://llvm.org/viewvc/llvm-project?rev=193409&view=rev
Log:
[sanitizer] Remove pthread_attr_getstackaddr interceptor.
The function is deprecated.
Modified:
compiler-rt/trunk/lib/msan/tests/msan_test.cc
compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc
compiler-rt/trunk/lib/tsan/rtl/tsan_stat.cc
compiler-rt/trunk/lib/tsan/rtl/tsan_stat.h
Modified: compiler-rt/trunk/lib/msan/tests/msan_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/tests/msan_test.cc?rev=193409&r1=193408&r2=193409&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/tests/msan_test.cc (original)
+++ compiler-rt/trunk/lib/msan/tests/msan_test.cc Fri Oct 25 09:27:00 2013
@@ -2548,12 +2548,6 @@ TEST(MemorySanitizer, pthread_attr_get)
EXPECT_NOT_POISONED(v);
}
{
- void *v;
- res = pthread_attr_getstackaddr(&attr, &v);
- ASSERT_EQ(0, res);
- EXPECT_NOT_POISONED(v);
- }
- {
size_t v;
res = pthread_attr_getstacksize(&attr, &v);
ASSERT_EQ(0, res);
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc?rev=193409&r1=193408&r2=193409&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc Fri Oct 25 09:27:00 2013
@@ -2558,7 +2558,6 @@ INTERCEPTOR_PTHREAD_ATTR_GET(guardsize,
INTERCEPTOR_PTHREAD_ATTR_GET(schedparam, struct_sched_param_sz)
INTERCEPTOR_PTHREAD_ATTR_GET(schedpolicy, sizeof(int))
INTERCEPTOR_PTHREAD_ATTR_GET(scope, sizeof(int))
-INTERCEPTOR_PTHREAD_ATTR_GET(stackaddr, sizeof(void *))
INTERCEPTOR_PTHREAD_ATTR_GET(stacksize, sizeof(SIZE_T))
INTERCEPTOR(int, pthread_attr_getstack, void *attr, void **addr, SIZE_T *size) {
void *ctx;
@@ -2577,7 +2576,6 @@ INTERCEPTOR(int, pthread_attr_getstack,
INTERCEPT_FUNCTION(pthread_attr_getschedparam); \
INTERCEPT_FUNCTION(pthread_attr_getschedpolicy); \
INTERCEPT_FUNCTION(pthread_attr_getscope); \
- INTERCEPT_FUNCTION(pthread_attr_getstackaddr); \
INTERCEPT_FUNCTION(pthread_attr_getstacksize); \
INTERCEPT_FUNCTION(pthread_attr_getstack);
#else
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_stat.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_stat.cc?rev=193409&r1=193408&r2=193409&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_stat.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_stat.cc Fri Oct 25 09:27:00 2013
@@ -401,7 +401,6 @@ void StatOutput(u64 *stat) {
name[StatInt_pthread_attr_getschedpolicy] = " pthread_addr_getschedpolicy "; // NOLINT
name[StatInt_pthread_attr_getinheritsched] = " pthread_addr_getinheritsched "; // NOLINT
name[StatInt_pthread_attr_getscope] = " pthread_addr_getscope "; // NOLINT
- name[StatInt_pthread_attr_getstackaddr] = " pthread_addr_getstackaddr "; // NOLINT
name[StatInt_pthread_attr_getstacksize] = " pthread_addr_getstacksize "; // NOLINT
name[StatInt_pthread_attr_getstack] = " pthread_addr_getstack "; // NOLINT
name[StatInt_pthread_attr_getaffinity_np] = " pthread_addr_getaffinity_np "; // NOLINT
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_stat.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_stat.h?rev=193409&r1=193408&r2=193409&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_stat.h (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_stat.h Fri Oct 25 09:27:00 2013
@@ -395,7 +395,6 @@ enum StatType {
StatInt_pthread_attr_getschedpolicy,
StatInt_pthread_attr_getinheritsched,
StatInt_pthread_attr_getscope,
- StatInt_pthread_attr_getstackaddr,
StatInt_pthread_attr_getstacksize,
StatInt_pthread_attr_getstack,
StatInt_pthread_attr_getaffinity_np,
More information about the llvm-commits
mailing list