summaryrefslogtreecommitdiff
path: root/lib/msan/msan.h
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-04-04 09:47:41 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-04-04 09:47:41 +0000
commitba4ad34df1af1c321da0981e1aaff9d35c45d37f (patch)
treee1d8ac67bf297961c9cf31724f7709c2380d507c /lib/msan/msan.h
parent8dc0d7f875b37003ce805dfe04c88bee3f02a6b8 (diff)
[msan] Introduce MsanThread. Move thread-local allocator cache out of TLS.
This reduces .tbss from 109K down to almost nothing. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@205618 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan/msan.h')
-rw-r--r--lib/msan/msan.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/msan/msan.h b/lib/msan/msan.h
index 0293b3763..7e16b324e 100644
--- a/lib/msan/msan.h
+++ b/lib/msan/msan.h
@@ -128,6 +128,11 @@ class ScopedThreadLocalStateBackup {
extern void (*death_callback)(void);
+void MsanTSDInit(void (*destructor)(void *tsd));
+void *MsanTSDGet();
+void MsanTSDSet(void *tsd);
+void MsanTSDDtor(void *tsd);
+
} // namespace __msan
#define MSAN_MALLOC_HOOK(ptr, size) \
@@ -135,11 +140,4 @@ extern void (*death_callback)(void);
#define MSAN_FREE_HOOK(ptr) \
if (&__msan_free_hook) __msan_free_hook(ptr)
-struct MsanStackBounds {
- uptr stack_addr, stack_size;
- uptr tls_addr, tls_size;
-};
-
-extern THREADLOCAL MsanStackBounds msan_stack_bounds;
-
#endif // MSAN_H