From 5ba736457c94580b9cf8a0a65fccf9a89da0b1a6 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 3 Oct 2013 13:37:17 +0000 Subject: tsan: ignore interceptors coming from specified libraries LibIgnore allows to ignore all interceptors called from a particular set of dynamic libraries. LibIgnore remembers all "called_from_lib" suppressions from the provided SuppressionContext; finds code ranges for the libraries; and checks whether the provided PC value belongs to the code ranges. Also make malloc and friends interceptors use SCOPED_INTERCEPTOR_RAW instead of SCOPED_TSAN_INTERCEPTOR, because if they are called from an ignored lib, then must call our internal allocator instead of libc malloc. llvm-svn: 191897 --- compiler-rt/lib/tsan/lit_tests/java_alloc.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'compiler-rt/lib/tsan/lit_tests/java_alloc.cc') diff --git a/compiler-rt/lib/tsan/lit_tests/java_alloc.cc b/compiler-rt/lib/tsan/lit_tests/java_alloc.cc index 079c9b92a62..4dbce70c31e 100644 --- a/compiler-rt/lib/tsan/lit_tests/java_alloc.cc +++ b/compiler-rt/lib/tsan/lit_tests/java_alloc.cc @@ -20,7 +20,6 @@ void *Thread(void *p) { int main() { jptr jheap = (jptr)malloc(kHeapSize); - __tsan_java_preinit("[vdso]"); __tsan_java_init(jheap, kHeapSize); pthread_t th; pthread_create(&th, 0, Thread, (void*)(jheap + kHeapSize / 4)); -- cgit v1.2.3