[Top][All Lists]

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

w32/w64 Emacs and gmalloc()

From: Fabrice Popineau
Subject: w32/w64 Emacs and gmalloc()
Date: Fri, 28 Feb 2014 16:39:04 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

In case it is of interest for the future, I let you know that I have managed 
to build an Emacs for w32/w64 that runs without gmalloc.
The patch is far from clean enough to be presented, but the thing is running.

All the problem was about dumping the data. 
I did it in an array which is dumped with the executable.
This also removes the need of addsection.
It allows the resulting executable to be striped.

Once the preloaded data are dumped, they are not freed nor realloc'ed, or 
rather, the space they occupied is not collected. This is suboptimal, but 
there is no way around with the w32 api alone (no way that I know of without 
using your own allocator).
After the dumping, the normal emacs runs on the w32 heap management. 
Nowadays, the heap can be controlled in various ways, especially it can be 
turned into the so-called `low fragmentation heap'.
If anybody has a good benchmark that would be usable to tweak the parameters, 
I'll be glad to try it.

Any comments welcome on the pros/cons of this gmalloc removal for w32.

Best regards,


reply via email to

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