Re: New libc malloc patch

From: Dan Nelson <dnelson_at_allantgroup.com>
Date: Sun, 11 Dec 2005 20:03:01 -0600
In the last episode (Dec 11), Jason Evans said:
> On Dec 11, 2005, at 4:35 PM, Julian Elischer wrote:
> > Is there no way to make it an option for a while? that would get
> > good testing AND a fallback for people.
> 
> Unfortunately, there are some low level issues that make the two
> malloc implementations incompatible, and they both need access to
> libc internals in order to work correctly in a multi-threaded
> program.  The way I have been comparing the two implementations is
> via chroot installations.  It might be possible to make the two
> compatible (would require extra coding), but since both of them need
> to be part of libc, we would need a way of building separate libc
> libraries for the two mallocs.  This all seems uglier than it's worth
> to me.  Maybe there's another way...

I have had good results by simply compiling malloc.c into a shared
library and loading it via LD_PRELOAD.  Works enough to run mozilla at
least.


-- 
	Dan Nelson
	dnelson_at_allantgroup.com
Received on Mon Dec 12 2005 - 01:03:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:49 UTC