diff options
| author | Mike Hommey <mh@glandium.org> | 2012-05-02 11:15:00 (GMT) |
|---|---|---|
| committer | Jason Evans <je@fb.com> | 2012-05-02 23:25:41 (GMT) |
| commit | 3597e91482c804592105ea078a0825fdb7c68dff (patch) | |
| tree | 5626b3bcb0bddaa156e8feccb289648cb7c8826e /test/integration/aligned_alloc.c | |
| parent | 80737c3323dabc45232affcaeb99ac2bad6ea647 (diff) | |
| download | jemalloc-3597e91482c804592105ea078a0825fdb7c68dff.zip jemalloc-3597e91482c804592105ea078a0825fdb7c68dff.tar.gz jemalloc-3597e91482c804592105ea078a0825fdb7c68dff.tar.bz2 | |
Allow je_malloc_message to be overridden when linking statically
If an application wants to override je_malloc_message, it is better to define
the symbol locally than to change its value in main(), which might be too late
for various reasons.
Due to je_malloc_message being initialized in util.c, statically linking
jemalloc with an application defining je_malloc_message fails due to
"multiple definition of" the symbol.
Defining it without a value (like je_malloc_conf) makes it more easily
overridable.
Diffstat (limited to 'test/integration/aligned_alloc.c')
0 files changed, 0 insertions, 0 deletions
