diff options
author | Jason Evans <jasone@canonware.com> | 2010-01-16 17:53:50 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2010-01-16 17:53:50 (GMT) |
commit | e476f8a161d445211fd6e54fe370275196e66bcb (patch) | |
tree | e49671282350bc3b6a1f77af38eb1e1103786f8c /jemalloc/configure.ac | |
parent | 64bd7661a833f97ec8a5cd0d688c64e8b5a7d5cc (diff) | |
download | jemalloc-e476f8a161d445211fd6e54fe370275196e66bcb.zip jemalloc-e476f8a161d445211fd6e54fe370275196e66bcb.tar.gz jemalloc-e476f8a161d445211fd6e54fe370275196e66bcb.tar.bz2 |
Refactor jemalloc.c into multiple source files.
Fix a stats bug in large object curruns accounting.
Replace tcache_bin_fill() with arena_tcache_fill(), and fix a bug in an OOM
error path.
Fix API name mangling to coexist with __attribute__((malloc)).
Diffstat (limited to 'jemalloc/configure.ac')
-rw-r--r-- | jemalloc/configure.ac | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/jemalloc/configure.ac b/jemalloc/configure.ac index f440a51..07adeb1 100644 --- a/jemalloc/configure.ac +++ b/jemalloc/configure.ac @@ -152,6 +152,9 @@ JE_COMPILABLE([__attribute__ syntax], [attribute]) if test "x${attribute}" = "xyes" ; then AC_DEFINE([JEMALLOC_HAVE_ATTR], [ ]) + if test "x$GCC" = "xyes" ; then + JE_CFLAGS_APPEND([-fvisibility=internal]) + fi fi dnl Platform-specific settings. abi and RPATH can probably be determined @@ -254,16 +257,7 @@ if test "x$JEMALLOC_PREFIX" != "x" ; then AC_DEFINE([JEMALLOC_PREFIX], [ ]) jemalloc_prefix=$JEMALLOC_PREFIX AC_SUBST([jemalloc_prefix]) - AC_DEFINE_UNQUOTED([malloc], [${JEMALLOC_PREFIX}malloc]) - AC_DEFINE_UNQUOTED([calloc], [${JEMALLOC_PREFIX}calloc]) - AC_DEFINE_UNQUOTED([posix_memalign], [${JEMALLOC_PREFIX}posix_memalign]) - AC_DEFINE_UNQUOTED([realloc], [${JEMALLOC_PREFIX}realloc]) - AC_DEFINE_UNQUOTED([free], [${JEMALLOC_PREFIX}free]) - AC_DEFINE_UNQUOTED([malloc_usable_size], [${JEMALLOC_PREFIX}malloc_usable_size]) - AC_DEFINE_UNQUOTED([malloc_tcache_flush], [${JEMALLOC_PREFIX}malloc_tcache_flush]) - AC_DEFINE_UNQUOTED([malloc_stats_print], [${JEMALLOC_PREFIX}malloc_stats_print]) - AC_DEFINE_UNQUOTED([malloc_options], [${JEMALLOC_PREFIX}malloc_options]) - AC_DEFINE_UNQUOTED([malloc_message], [${JEMALLOC_PREFIX}malloc_message]) + AC_DEFINE_UNQUOTED([JEMALLOC_P(string_that_no_one_should_want_to_use_as_a_jemalloc_API_prefix)], [${JEMALLOC_PREFIX}##string_that_no_one_should_want_to_use_as_a_jemalloc_API_prefix]) fi dnl Do not compile with debugging by default. |