unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#69706: 30.0.50; sort.c, unnecessary GC marking
@ 2024-03-10  8:45 Gerd Möllmann
  2024-03-10 10:38 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Gerd Möllmann @ 2024-03-10  8:45 UTC (permalink / raw)
  To: 69706

sort.c uses record_unwind_protect_mark to let GC mark some objects in
its merge_state structure, while GC marks the specpdl stack.

This is

- unnecessary because all the objects that are currrently extra
  protected by merge_markmem, are already seen by the GC, because these
  are the objects being sorted, which are protected in the usual way
  (marking the control stack, ...)

- costs GC time

- complicates the code

I therefore suggest removing this, including the removal of
record_unwind_protect_mark and the mark function pointer in union
specbinding (sort.c is the only user).






^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-03-10 14:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-10  8:45 bug#69706: 30.0.50; sort.c, unnecessary GC marking Gerd Möllmann
2024-03-10 10:38 ` Eli Zaretskii
2024-03-10 10:51   ` Gerd Möllmann
2024-03-10 11:12     ` Eli Zaretskii
2024-03-10 11:16   ` Mattias Engdegård
2024-03-10 11:29     ` Gerd Möllmann
2024-03-10 13:38       ` Mattias Engdegård
2024-03-10 14:01         ` Gerd Möllmann

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).