New libc malloc patch
Dan Nelson
dnelson at allantgroup.com
Sun Dec 11 18:03:26 PST 2005
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
More information about the freebsd-current
mailing list