summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/lib/hwasan/hwasan_interceptors.cpp23
-rw-r--r--compiler-rt/lib/hwasan/hwasan_thread.h5
2 files changed, 0 insertions, 28 deletions
diff --git a/compiler-rt/lib/hwasan/hwasan_interceptors.cpp b/compiler-rt/lib/hwasan/hwasan_interceptors.cpp
index 17bf14d810c..47fed0fc9ab 100644
--- a/compiler-rt/lib/hwasan/hwasan_interceptors.cpp
+++ b/compiler-rt/lib/hwasan/hwasan_interceptors.cpp
@@ -44,24 +44,6 @@ using __sanitizer::atomic_load;
using __sanitizer::atomic_store;
using __sanitizer::atomic_uintptr_t;
-bool IsInInterceptorScope() {
- Thread *t = GetCurrentThread();
- return t && t->InInterceptorScope();
-}
-
-struct InterceptorScope {
- InterceptorScope() {
- Thread *t = GetCurrentThread();
- if (t)
- t->EnterInterceptorScope();
- }
- ~InterceptorScope() {
- Thread *t = GetCurrentThread();
- if (t)
- t->LeaveInterceptorScope();
- }
-};
-
static uptr allocated_for_dlsym;
static const uptr kDlsymAllocPoolSize = 1024;
static uptr alloc_memory_for_dlsym[kDlsymAllocPoolSize];
@@ -254,11 +236,6 @@ INTERCEPTOR(int, fork, void) {
return pid;
}
-
-struct HwasanInterceptorContext {
- bool in_interceptor_scope;
-};
-
namespace __hwasan {
int OnExit() {
diff --git a/compiler-rt/lib/hwasan/hwasan_thread.h b/compiler-rt/lib/hwasan/hwasan_thread.h
index 6fa592bfac6..42c1e9e124b 100644
--- a/compiler-rt/lib/hwasan/hwasan_thread.h
+++ b/compiler-rt/lib/hwasan/hwasan_thread.h
@@ -46,10 +46,6 @@ class Thread {
void EnterSymbolizer() { in_symbolizer_++; }
void LeaveSymbolizer() { in_symbolizer_--; }
- bool InInterceptorScope() { return in_interceptor_scope_; }
- void EnterInterceptorScope() { in_interceptor_scope_++; }
- void LeaveInterceptorScope() { in_interceptor_scope_--; }
-
AllocatorCache *allocator_cache() { return &allocator_cache_; }
HeapAllocationsRingBuffer *heap_allocations() { return heap_allocations_; }
StackAllocationsRingBuffer *stack_allocations() { return stack_allocations_; }
@@ -82,7 +78,6 @@ class Thread {
unsigned in_signal_handler_;
unsigned in_symbolizer_;
- unsigned in_interceptor_scope_;
u32 random_state_;
u32 random_buffer_;
OpenPOWER on IntegriCloud