]> git.eshelyaron.com Git - emacs.git/commit
Don’t default to Valgrind unless ENABLE_CHECKING
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 4 Jun 2020 01:58:45 +0000 (18:58 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 4 Jun 2020 02:00:04 +0000 (19:00 -0700)
commit638ef457876c14b9d713e2fa991f5db3ad53c4f9
tree29d98738fba3a107a1916918c2892ac04d65eaeb
parent65749436d03fd0b9e379dcc06cc678522c6960cf
Don’t default to Valgrind unless ENABLE_CHECKING

* src/alloc.c (USE_VALGRIND): If not defined, don’t default it to
1 unless ENABLE_CHECKING.  The Valgrind hooks bloat the garbage
collector a bit in production, and there’s no need for them these
days if one has a Valgrind suppressions file (which one needs anyway).
(mark_maybe_pointer): Use ‘#if USE_VALGRIND’ instead of ‘#ifdef
USE_VALGRIND’ for consistency with other uses of USE_VALGRIND.
This is in case someone builds with ‘-DENABLE_CHECKING
-DUSE_VALGRIND=0’ in CFLAGS.
src/alloc.c