[PATCH] Allow to use different prefixes for jemalloc-specific functions and libc functions
Jason Evans
jasone at canonware.com
Mon Mar 12 13:12:33 PDT 2012
On Mar 12, 2012, at 12:28 PM, Mike Hommey wrote:
> On Mon, Mar 12, 2012 at 11:44:41AM -0700, Jason Evans wrote:
>>
>> The name mangling that is specified via --with-mangling overrides --with-jemalloc-prefix, so I thought this would do what you want.
>>
>> ./autogen.sh --enable-cc-silence --enable-prof --enable-debug --with-mangling=malloc:__wrap_malloc,calloc:__wrap_calloc,realloc:__wrap_realloc,free:__wrap_free --with-jemalloc-prefix=je_
>
> After running that, this is what jemalloc_defs.h contains:
> #define je_malloc_conf je_malloc_conf
> #define je_malloc_message je_malloc_message
> #define je_malloc je_malloc
> #define je_calloc je_calloc
> #define je_posix_memalign je_posix_memalign
> #define je_realloc je_realloc
> #define je_free je_free
> #define je_malloc_usable_size je_malloc_usable_size
> #define je_malloc_stats_print je_malloc_stats_print
> #define je_mallctl je_mallctl
> #define je_mallctlnametomib je_mallctlnametomib
> #define je_mallctlbymib je_mallctlbymib
> #define je_memalign je_memalign
> #define je_valloc je_valloc
> #define je_allocm je_allocm
> #define je_rallocm je_rallocm
> #define je_sallocm je_sallocm
> #define je_dallocm je_dallocm
> #define je_nallocm je_nallocm
>
> Even without --with-jemalloc-prefix=je_, I get the same output.
What operating system are you using?
Thanks,
Jason
More information about the jemalloc-discuss
mailing list