Re-enable GC mark trace buffer by default
authorMattias Engdegård <mattiase@acm.org>
Tue, 17 Sep 2024 11:07:01 +0000 (13:07 +0200)
committerMattias Engdegård <mattiase@acm.org>
Tue, 17 Sep 2024 11:27:35 +0000 (13:27 +0200)
commit4c6f45fa8eef1a15d5790c1f3d3e608b548015db
treea0b5ff77ded212162c2fdaab660a1b58f52c6774
parentc6077015894dd89c5aa3811bf55d3124394874d0
Re-enable GC mark trace buffer by default

Enable GC_REMEMBER_LAST_MARKED by default (it was disabled in Emacs 29)
to make it easier to debug difficult-to-reproduce GC problems
encountered by users.  This increases GC costs by about 5 %, which can
be avoided by turning the mark trace buffer back off using the new
--disable-gc-mark-trace option.

See discussion at
https://lists.gnu.org/archive/html/emacs-devel/2024-09/msg00240.html

* configure.ac (--disable-gc-mark-trace): New config option.
* etc/NEWS: Mention it.
* src/alloc.c: Enable it by default and avoid a compiler warning.
configure.ac
etc/NEWS
src/alloc.c