emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamic modules: emacs-module.c and signaling errors


From: Eli Zaretskii
Subject: Re: Dynamic modules: emacs-module.c and signaling errors
Date: Wed, 25 Nov 2015 19:30:05 +0200

> Cc: Eli Zaretskii <address@hidden>, address@hidden,
>  address@hidden, address@hidden, address@hidden,
>  address@hidden
> From: Paul Eggert <address@hidden>
> Date: Tue, 24 Nov 2015 22:55:14 -0800
> 
> Tom Tromey wrote:
> > The alternative is also error-prone though.  It's very easy to forget
> > that some cleanup is needed; and the Emacs facilities here aren't really
> > all that easy to use either.
> 
> We're talking about memory allocation here.  If Emacs allocates the memory, 
> the 
> caller shouldn't need to clean up, as the Emacs garbage collector can do 
> that. 
> This should be less error-prone.

Maybe I misunderstand the issue, but AFAICS any Lisp data that is
allocated by emacs-module.c on behalf of modules already goes through
xmalloc, so what exactly are the remaining problems?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]