mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Make special FreeBSD function overrides visible.
Make special FreeBSD libc/libthr function overrides for _malloc_prefork(), _malloc_postfork(), and _malloc_thread_cleanup() visible.
This commit is contained in:
parent
1ad56385ad
commit
86e58583bb
3 changed files with 6 additions and 0 deletions
|
|
@ -1,3 +1,6 @@
|
|||
#define a0calloc JEMALLOC_N(a0calloc)
|
||||
#define a0free JEMALLOC_N(a0free)
|
||||
#define a0malloc JEMALLOC_N(a0malloc)
|
||||
#define arena_alloc_junk_small JEMALLOC_N(arena_alloc_junk_small)
|
||||
#define arena_bin_index JEMALLOC_N(arena_bin_index)
|
||||
#define arena_boot JEMALLOC_N(arena_boot)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ malloc_tsd_no_cleanup(void *arg)
|
|||
}
|
||||
|
||||
#ifdef JEMALLOC_MALLOC_THREAD_CLEANUP
|
||||
JEMALLOC_ATTR(visibility("default"))
|
||||
void
|
||||
_malloc_thread_cleanup(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue