diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-07-16 11:22:46 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-08-30 06:36:41 +0200 |
| commit | ac2050609055d76a58b058b064f0b0c4d54e2faa (patch) | |
| tree | 54855b2bde3e1eed89d870251b044e93972f6c5c /lib/libtsan/tsan_malloc_mac.cpp | |
| parent | 85438e75e04b356ca319051c33e0987a9958ad4a (diff) | |
| download | zig-ac2050609055d76a58b058b064f0b0c4d54e2faa.tar.gz zig-ac2050609055d76a58b058b064f0b0c4d54e2faa.zip | |
libtsan: update to LLVM 21
Diffstat (limited to 'lib/libtsan/tsan_malloc_mac.cpp')
| -rw-r--r-- | lib/libtsan/tsan_malloc_mac.cpp | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/lib/libtsan/tsan_malloc_mac.cpp b/lib/libtsan/tsan_malloc_mac.cpp index e973be963e..9d097806fa 100644 --- a/lib/libtsan/tsan_malloc_mac.cpp +++ b/lib/libtsan/tsan_malloc_mac.cpp @@ -73,15 +73,19 @@ using namespace __tsan; invoke_free_hook(ptr); \ SCOPED_INTERCEPTOR_RAW(free, ptr); \ user_free(thr, pc, ptr) -#define COMMON_MALLOC_SIZE(ptr) uptr size = user_alloc_usable_size(ptr); -#define COMMON_MALLOC_FILL_STATS(zone, stats) -#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_NAMESPACE __tsan -#define COMMON_MALLOC_HAS_ZONE_ENUMERATOR 0 -#define COMMON_MALLOC_HAS_EXTRA_INTROSPECTION_INIT 0 +# define COMMON_MALLOC_FREE_SIZED(ptr, size) COMMON_MALLOC_FREE(ptr) +# define COMMON_MALLOC_FREE_ALIGNED_SIZED(ptr, alignment, size) \ + COMMON_MALLOC_FREE(ptr) +# define COMMON_MALLOC_SIZE(ptr) uptr size = user_alloc_usable_size(ptr); +# define COMMON_MALLOC_FILL_STATS(zone, stats) +# 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_NAMESPACE __tsan +# define COMMON_MALLOC_HAS_ZONE_ENUMERATOR 0 +# define COMMON_MALLOC_HAS_EXTRA_INTROSPECTION_INIT 0 -#include "sanitizer_common/sanitizer_malloc_mac.inc" +# include "sanitizer_common/sanitizer_malloc_mac.inc" #endif |
