unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Stefan Kangas <stefankangas@gmail.com>
Cc: mattias.engdegard@gmail.com, emacs-devel@gnu.org
Subject: Re: last_marked array is now ifdef'ed away
Date: Sun, 15 Sep 2024 09:01:16 +0300	[thread overview]
Message-ID: <86ldzte9qr.fsf@gnu.org> (raw)
In-Reply-To: <CADwFkmkNbG6bRvhdm_fZa=DFKCFAYvQcvTWB+y6AutxWuha4=g@mail.gmail.com> (message from Stefan Kangas on Sat, 14 Sep 2024 15:50:03 -0700)

> From: Stefan Kangas <stefankangas@gmail.com>
> Date: Sat, 14 Sep 2024 15:50:03 -0700
> Cc: emacs-devel@gnu.org
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > I'm quite confident that I want this be turned on again.
> 
> Since this affects performance by quite a bit (4.5-6.5 %, reportedly),
> how about the suggestion to "hitch it to another existing config option
> like ENABLE_CHECKING, or even make this an independent config option"?

This feature is useless if it is optional, because its main (perhaps
the only) use is when Emacs crashes during GC on a user machine,
especially without enough debug info.  Crashes during GC are rarely if
at all reproducible, so the only hope to investigate them is to look
at the objects recorded in the last_marked array, and asking users to
rebuild with some non-default option will not help.

If we are going to make it a compilation option, we might as well
remove it entirely.

5% of slowdown during GC (if that's a well-established number) is a
small price to pay for the possibility of investigating rare crashes.
A typical GC cycle takes tens or hundreds of milliseconds, so these
few percents are just a couple of msec.



  reply	other threads:[~2024-09-15  6:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-07  6:05 last_marked array is now ifdef'ed away Eli Zaretskii
2024-09-12  9:19 ` Eli Zaretskii
2024-09-13 14:43   ` Mattias Engdegård
2024-09-13 15:21     ` Eli Zaretskii
2024-09-14 17:05       ` Mattias Engdegård
2024-09-14 17:30         ` Eli Zaretskii
2024-09-14 20:30           ` Mattias Engdegård
2024-09-15  5:51             ` Eli Zaretskii
2024-09-15 13:58               ` Mattias Engdegård
2024-09-15 14:21                 ` Eli Zaretskii
2024-09-17 10:15                   ` Mattias Engdegård
2024-09-17 13:22                     ` Eli Zaretskii
2024-09-14 22:50           ` Stefan Kangas
2024-09-15  6:01             ` Eli Zaretskii [this message]
2024-09-16 18:07               ` Andrea Corallo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86ldzte9qr.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=mattias.engdegard@gmail.com \
    --cc=stefankangas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).