]> git.eshelyaron.com Git - emacs.git/commit
src/alloc.c: Convert ASan functions to macros to reduce overhead.
authorVibhav Pant <vibhavp@gmail.com>
Sun, 18 Dec 2022 14:35:33 +0000 (20:05 +0530)
committerVibhav Pant <vibhavp@gmail.com>
Sun, 18 Dec 2022 14:35:33 +0000 (20:05 +0530)
commitb9495c3713789df6af775ae789dbcd2145532f01
tree8f7c8d724585946156169168150e0058dc63df62
parent7f8aa9db63de147f4196525de99007e1e5c64dfe
src/alloc.c: Convert ASan functions to macros to reduce overhead.

* src/alloc.c (ASAN_POISON_ABLOCK, ASAN_UNPOISON_ABLOCK)
(ASAN_POISON_INTERVAL_BLOCK, ASAN_UNPOISON_INTERVAL_BLOCK)
(ASAN_POISON_INTERVAL, ASAN_UNPOISON_INTERVAL)
(ASAN_PREPARE_DEAD_SDATA, ASAN_PREPARE_LIVE_SDATA)
(ASAN_POISON_SBLOCK_DATA, ASAN_POISON_STRING_BLOCK)
(ASAN_UNPOISON_STRING_BLOCK, ASAN_POISON_STRING)
(ASAN_UNPOISON_STRING, ASAN_POISON_FLOAT_BLOCK)
(ASAN_UNPOISON_FLOAT_BLOCK, ASAN_POISON_FLOAT)
(ASAN_UNPOISON_FLOAT, ASAN_POISON_CONS_BLOCK)
(ASAN_POISON_CONS, ASAN_UNPOISON_CONS)
(ASAN_POISON_VECTOR_CONTENTS, ASAN_UNPOISON_VECTOR_CONTENTS)
(ASAN_UNPOISON_VECTOR_BLOCK, ASAN_POISON_SYMBOL_BLOCK)
(ASAN_UNPOISON_SYMBOL_BLOCK, ASAN_POISON_SYMBOL)
(ASAN_UNPOISON_SYMBOL): Rewrite as macros to remove unneeded overhead
when address sanitization is disabled.
src/alloc.c