Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jan 2013 15:42:19 -0800
From:      Jason Evans <jasone@canonware.com>
To:        Steve Kiernan <stevek@juniper.net>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: [JNPR] Proposal to add weak symbols for malloc, realloc, and free to libc
Message-ID:  <E4A1FEFD-B267-422B-8051-443B1F8519E1@canonware.com>
In-Reply-To: <20130117161311.4c15c7c4@stevek-ubuntu>

index | next in thread | previous in thread | raw e-mail

On Jan 17, 2013, at 1:13 PM, Steve Kiernan wrote:
> When libc was changed to use jemalloc, the weak symbols for malloc, realloc, and free ended up being removed.
> This makes it a bit difficult for an application to replace (or augment) the malloc implementation.
> 
> This proposal is to add back the weak symbols similar to how they existed in libc prior to jemalloc introduction.
> 
> See the following patch for the changes:
> http://people.freebsd.org/~marcel/Juniper/weak-malloc.diff
> 
> I'm not sure if the the symbols are in the proper place in the Symbol.map file and would welcome comments.

What about calloc(), posix_memalign(), and malloc_usable_size()?  Similarly, I think the *allocm() functions in -current may need the same treatment.

Thanks,
Jason

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E4A1FEFD-B267-422B-8051-443B1F8519E1>