[compiler-rt] 75be368 - [msan] Remove dead function/fields

Jianzhou Zhao via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 29 16:09:00 PDT 2021


Author: Jianzhou Zhao
Date: 2021-04-29T23:08:39Z
New Revision: 75be3681d1a98e57f3e7d45343b8fd0a8286b56b

URL: https://github.com/llvm/llvm-project/commit/75be3681d1a98e57f3e7d45343b8fd0a8286b56b
DIFF: https://github.com/llvm/llvm-project/commit/75be3681d1a98e57f3e7d45343b8fd0a8286b56b.diff

LOG: [msan] Remove dead function/fields

To see how to extract a shared allocator interface for D101204,
found some unused code. Tests passed. Are they safe to remove?

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D101559

Added: 
    

Modified: 
    compiler-rt/lib/memprof/memprof_allocator.h
    compiler-rt/lib/msan/msan.h
    compiler-rt/lib/msan/msan_allocator.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/memprof/memprof_allocator.h b/compiler-rt/lib/memprof/memprof_allocator.h
index 070b8b2f27377..f1438baaa20e9 100644
--- a/compiler-rt/lib/memprof/memprof_allocator.h
+++ b/compiler-rt/lib/memprof/memprof_allocator.h
@@ -69,7 +69,6 @@ using MemprofAllocator = MemprofAllocatorASVT<LocalAddressSpaceView>;
 using AllocatorCache = MemprofAllocator::AllocatorCache;
 
 struct MemprofThreadLocalMallocStorage {
-  uptr quarantine_cache[16];
   AllocatorCache allocator_cache;
   void CommitBack();
 

diff  --git a/compiler-rt/lib/msan/msan.h b/compiler-rt/lib/msan/msan.h
index e794c7c15f895..a46e42c0e8e9d 100644
--- a/compiler-rt/lib/msan/msan.h
+++ b/compiler-rt/lib/msan/msan.h
@@ -296,7 +296,6 @@ char *GetProcSelfMaps();
 void InitializeInterceptors();
 
 void MsanAllocatorInit();
-void MsanAllocatorThreadFinish();
 void MsanDeallocate(StackTrace *stack, void *ptr);
 
 void *msan_malloc(uptr size, StackTrace *stack);

diff  --git a/compiler-rt/lib/msan/msan_allocator.h b/compiler-rt/lib/msan/msan_allocator.h
index 42a5022c9e3e7..365af4d0c4dd0 100644
--- a/compiler-rt/lib/msan/msan_allocator.h
+++ b/compiler-rt/lib/msan/msan_allocator.h
@@ -18,7 +18,6 @@
 namespace __msan {
 
 struct MsanThreadLocalMallocStorage {
-  uptr quarantine_cache[16];
   // Allocator cache contains atomic_uint64_t which must be 8-byte aligned.
   ALIGNED(8) uptr allocator_cache[96 * (512 * 8 + 16)];  // Opaque.
   void CommitBack();


        


More information about the llvm-commits mailing list