diff options
| author | Paul Eggert | 2020-08-03 15:21:59 -0700 |
|---|---|---|
| committer | Paul Eggert | 2020-08-03 19:08:58 -0700 |
| commit | a1436544ff826b8c51242f4afb7c5d485c8e2e32 (patch) | |
| tree | 05806e744974863a62ef5b2e903b062ca2c7545f /src/data.c | |
| parent | a4ed198e8f3754a59cabbb03ab6bae8a49597ee0 (diff) | |
| download | emacs-a1436544ff826b8c51242f4afb7c5d485c8e2e32.tar.gz emacs-a1436544ff826b8c51242f4afb7c5d485c8e2e32.zip | |
Simplify use of __lsan_ignore_object
* configure.ac: Use AC_CHECK_FUNCS_ONCE for __lsan_ignore_object.
* src/buffer.c, src/data.c, src/emacs-module.c, src/regex-emacs.c:
* src/search.c: Use __lsan_ignore_object unconditionally, and don’t
include sanitizer/lsan_interface.h.
* src/lisp.h (__lsan_ignore_object): Provide a dummy in the
typical case where leak sanitization is not available.
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/data.c b/src/data.c index 5fff52d24c2..59d148166fe 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -23,10 +23,6 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 23 | #include <math.h> | 23 | #include <math.h> |
| 24 | #include <stdio.h> | 24 | #include <stdio.h> |
| 25 | 25 | ||
| 26 | #ifdef HAVE_SANITIZER_LSAN_INTERFACE_H | ||
| 27 | #include <sanitizer/lsan_interface.h> | ||
| 28 | #endif | ||
| 29 | |||
| 30 | #include <byteswap.h> | 26 | #include <byteswap.h> |
| 31 | #include <count-one-bits.h> | 27 | #include <count-one-bits.h> |
| 32 | #include <count-trailing-zeros.h> | 28 | #include <count-trailing-zeros.h> |
| @@ -1788,9 +1784,7 @@ make_blv (struct Lisp_Symbol *sym, bool forwarded, | |||
| 1788 | set_blv_defcell (blv, tem); | 1784 | set_blv_defcell (blv, tem); |
| 1789 | set_blv_valcell (blv, tem); | 1785 | set_blv_valcell (blv, tem); |
| 1790 | set_blv_found (blv, false); | 1786 | set_blv_found (blv, false); |
| 1791 | #ifdef HAVE___LSAN_IGNORE_OBJECT | ||
| 1792 | __lsan_ignore_object (blv); | 1787 | __lsan_ignore_object (blv); |
| 1793 | #endif | ||
| 1794 | return blv; | 1788 | return blv; |
| 1795 | } | 1789 | } |
| 1796 | 1790 | ||