emacs-devel
[Top][All Lists]
Advanced

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

Re: w32/w64 Emacs and gmalloc()


From: Eli Zaretskii
Subject: Re: w32/w64 Emacs and gmalloc()
Date: Tue, 04 Mar 2014 05:49:04 +0200

> From: Stefan Monnier <address@hidden>
> Cc: address@hidden, address@hidden
> Date: Mon, 03 Mar 2014 22:28:03 -0500
> 
> >> I'm just pointing out that it can be improved a bit by exposing the
> >> "freeable_p" test and use it in sweep_foo so we don't even try to
> >> free blocks when the free would be ignored.  Along the lines of the
> >> patch below.
> > Will this handle all the calls to xrealloc we have in the sources?
> 
> Not sure what you mean.  I think the answer is "no" because we're not
> trying to optimize all cases, only those that we (easily) can.

What I meant is this: if some cases of xrealloc still remain that will
try to reallocate a buffer allocated before dumping, then we still
need code to intercept the reallocation and make it call malloc
without freeing the frozen memory.



reply via email to

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