GNU bug report logs - #22737
25.1; Finalizer should be optional in dynamic modules

Previous Next

Package: emacs;

Reported by: Jess Balint <jbalint <at> gmail.com>

Date: Thu, 18 Feb 2016 21:58:02 UTC

Severity: normal

Tags: notabug, wontfix

Found in version 25.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jess Balint <jbalint <at> gmail.com>
Cc: 22737 <at> debbugs.gnu.org
Subject: Re: bug#22737: 25.1; Finalizer should be optional in dynamic modules
Date: Wed, 24 Feb 2016 05:40:13 +0200
> Date: Tue, 23 Feb 2016 16:47:12 -0600
> From: Jess Balint <jbalint <at> gmail.com>
> Cc: 22737 <at> debbugs.gnu.org
> 
> If the data is unspecified it doesn't *necessarily* need to be freed. If I return a pointer to some global data then
> I need to create a no-op finalizer just to please this GC code. In some cases I will be managing memory a bit
> more manually and don't care to have Emacs doing anything for me.

I don't think I follow.  How can you manage memory manually when Emacs
does GC whenever it feels like it?  The memory of the objects it GCs
will simply be leaked if you don't have a finalizer.

Can you describe a specific use case where a finalizer would not be
needed?

Thanks.




This bug report was last modified 5 years and 316 days ago.

Previous Next


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