[PATCH] Allow to use different prefixes for jemalloc-specific functions and libc functions

Mike Hommey mh+jemalloc at glandium.org
Mon Mar 12 07:36:23 PDT 2012


On Mon, Mar 12, 2012 at 10:49:07AM +0100, Mike Hommey wrote:
> On Thu, Mar 01, 2012 at 05:49:33PM -0800, Jason Evans wrote:
> > I went a slightly different direction with this and added --with-mangling:
> > 
> >   http://www.canonware.com/cgi-bin/gitweb.cgi?p=jemalloc.git;a=commitdiff;h=0a5489e37da88a1a50fbf8552e0d3a7f8fd93ffc
> > 
> > Please let me know if this fails to meet your needs for some reason.
> 
> The fact that --with-jemalloc-prefix overrides anything set with
> --with-mangling makes it unconvenient for our usecase, where we want to
> prefix with je_ except a few functions we want to either not prefix (on
> desktop) or wrap (on android). Sure, we can use --with-mangling to set
> the je_ prefix, but that won't cover new APIs when they appear.

In fact, --with-mangling doesn't work at all. Everything stays as #under
in jemalloc.h.

Mike



More information about the jemalloc-discuss mailing list