[PATCH] malloc: Remove __malloc_initialize_hook from the API [BZ #19564]

Paul Eggert eggert@cs.ucla.edu
Tue Jun 7 23:06:00 GMT 2016


On 06/07/2016 01:04 PM, Florian Weimer wrote:
>
> Current Emacs sources should compile fine as well:
>
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22086

Yes, if I recall correctly Emacs works with the proposed patches as follows:

* When Emacs is built against the patched glibc, it falls back on its 
own malloc implementation, which hurts performance somewhat but 
acceptably so (text 0.5% larger, data 7.6% larger, 14% more CPU time on 
my usual benchmark).

* When Emacs 24.5 is built against patched glibc there are compile-time 
warnings from GCC that can be safely ignored. These warnings won't be 
fixed in Emacs 25, the next Emacs release (I didn't prepare them in 
time) but should be fixed in the major release after that.

On my long list of things to do is to replace Emacs's dumping mechanism 
with something more portable.



More information about the Libc-alpha mailing list