GNU bug report logs - #78917
feature/igc [PATCH] Avoid chaining finalizers together

Previous Next

Package: emacs;

Reported by: Helmut Eller <eller.helmut <at> gmail.com>

Date: Sat, 28 Jun 2025 04:44:01 UTC

Severity: normal

Tags: patch

Full log


Message #29 received at 78917 <at> debbugs.gnu.org (full text, mbox):

From: Daniel Colascione <dancol <at> dancol.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 78917 <at> debbugs.gnu.org, Helmut Eller <eller.helmut <at> gmail.com>
Subject: Re: bug#78917: feature/igc [PATCH] Avoid chaining finalizers together
Date: Sun, 29 Jun 2025 14:20:38 -0400
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Helmut Eller <eller.helmut <at> gmail.com>
>> Date: Sat, 28 Jun 2025 06:42:45 +0200
>> 
>> Lisp_Finalizers are currently chained together in a doubly linked list.
>> This prevents them from being collected.  I propose that we simply don't
>> use this list with MPS.
>> 
>> The first patch is minimalistic: it only skips finalizer_insert when
>> creating finalizers.
>> 
>> The second patch is more thorough: it #ifdefs away the prev/next fields
>> entirely.
>
> Thanks.
>
> Daniel, could you please tell what was the intended purpose of
> chaining the finalizers?

How else do you sweep the unreachable ones at the end of GC?




This bug report was last modified 31 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.