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: Fabrice Popineau
Subject: Re: w32/w64 Emacs and gmalloc()
Date: Sat, 1 Mar 2014 17:00:18 +0100




That sounds OK.  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.

Of course, maybe it's not worth the trouble.


Good idea! I'll try it and keep it if it helps.

BTW, while working on this gmalloc removal, I noticed the following about what kind of
memory allocations occur while undumping.
I had to look at the "big chunks" vs the "small chunks", big being over a size of 0x80000
(don't ask why this constant, it is related to the w32 heap api).
Only a couple (actualy 5 or 6 at most) of them occur, except during the loading of charset maps.
While loading charset maps, big vectors are allocated and freed right away many times.

What I'm saying is that basically, all those big chunks could be made static.
I'm not sure it is a good idea, but it is an obvious one.

Fabrice

reply via email to

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