summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2012-04-19 02:01:00 (GMT)
committerJason Evans <jasone@canonware.com>2012-04-19 02:01:00 (GMT)
commit86e58583bb443fcfe885a1a96b466ab5933cb443 (patch)
treefcd32c42f6f63a2e68a387496409ab9e54c990e1 /src
parent1ad56385adc40cfbca1b14c240a9c647135ac641 (diff)
downloadjemalloc-86e58583bb443fcfe885a1a96b466ab5933cb443.zip
jemalloc-86e58583bb443fcfe885a1a96b466ab5933cb443.tar.gz
jemalloc-86e58583bb443fcfe885a1a96b466ab5933cb443.tar.bz2
Make special FreeBSD function overrides visible.
Make special FreeBSD libc/libthr function overrides for _malloc_prefork(), _malloc_postfork(), and _malloc_thread_cleanup() visible.
Diffstat (limited to 'src')
-rw-r--r--src/jemalloc.c2
-rw-r--r--src/tsd.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/jemalloc.c b/src/jemalloc.c
index d4b681b..6669c11 100644
--- a/src/jemalloc.c
+++ b/src/jemalloc.c
@@ -1621,6 +1621,7 @@ je_nallocm(size_t *rsize, size_t size, int flags)
void
jemalloc_prefork(void)
#else
+JEMALLOC_ATTR(visibility("default"))
void
_malloc_prefork(void)
#endif
@@ -1642,6 +1643,7 @@ _malloc_prefork(void)
void
jemalloc_postfork_parent(void)
#else
+JEMALLOC_ATTR(visibility("default"))
void
_malloc_postfork(void)
#endif
diff --git a/src/tsd.c b/src/tsd.c
index 0838dc8..f63493d 100644
--- a/src/tsd.c
+++ b/src/tsd.c
@@ -32,6 +32,7 @@ malloc_tsd_no_cleanup(void *arg)
}
#ifdef JEMALLOC_MALLOC_THREAD_CLEANUP
+JEMALLOC_ATTR(visibility("default"))
void
_malloc_thread_cleanup(void)
{