diff options
| author | Alexander Potapenko <glider@google.com> | 2015-12-04 16:17:55 +0000 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2015-12-04 16:17:55 +0000 |
| commit | 6f3fa20c763b4eba0c915efc146b2cf40dc13e77 (patch) | |
| tree | 9dd3e939d672d94dfc3c56a6b5b16d349fce767a /compiler-rt/lib/tsan/rtl/tsan_malloc_mac.cc | |
| parent | a7612b4fac8b63923326d3d616b55ed86aea54d6 (diff) | |
| download | bcm5719-llvm-6f3fa20c763b4eba0c915efc146b2cf40dc13e77.tar.gz bcm5719-llvm-6f3fa20c763b4eba0c915efc146b2cf40dc13e77.zip | |
[ASan] Retire mac_ignore_invalid_free, remove some dead code.
mac_ignore_invalid_free was helpful when ASan runtime used to intercept
CFAllocator and sometimes corrupted its memory. This behavior had been long
gone, and the flag was unused.
This patch also deletes ReportMacCfReallocUnknown(), which was used by the
CFAllocator realloc() wrapper.
llvm-svn: 254722
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_malloc_mac.cc')
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_malloc_mac.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_malloc_mac.cc b/compiler-rt/lib/tsan/rtl/tsan_malloc_mac.cc index 087392f5741..7fd94273c31 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_malloc_mac.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_malloc_mac.cc @@ -58,10 +58,6 @@ using namespace __tsan; #define COMMON_MALLOC_REPORT_UNKNOWN_REALLOC(ptr, zone_ptr, zone_name) \ (void)zone_name; \ Report("mz_realloc(%p) -- attempting to realloc unallocated memory.\n", ptr); -#define COMMON_MALLOC_IGNORE_INVALID_FREE false -#define COMMON_MALLOC_REPORT_FREE_UNALLOCATED(ptr, zone_ptr, zone_name) \ - (void)zone_name; \ - Report("free_common(%p) -- attempting to free unallocated memory.\n", ptr); #define COMMON_MALLOC_NAMESPACE __tsan #include "sanitizer_common/sanitizer_malloc_mac.inc" |

