This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: malloc: performance improvements and bugfixes


On 01/26/2016 10:59 PM, Jörn Engel wrote:
> On Tue, Jan 26, 2016 at 10:40:50PM +0100, Florian Weimer wrote:
>> On 01/26/2016 09:50 PM, Steven Munroe wrote:
>>
>>> So why not fix emacs to stop doing this (purely evil behavior).
>>>
>>> If they want to persist their internal state from session to session
>>> there are better ways. For example: https://sphde.github.io/
>>
>> It's complicated, but not just for the technical challenges involved.
>> My warning to the Emacs developers that we are going to clean this up on
>> the glibc side was not universally well-received.
> 
> One option is to do something like
> 
> #define USE_NEW_MALLOC
> #include <stdlib.h>

This is not an option because we would have to prevent all libraries
which Emacs links against from doing this (recursively).  This does not
work.

And we don't want to maintain two mallocs inside glibc.

Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]