summaryrefslogtreecommitdiffstats
path: root/src/arena.c
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2012-04-03 16:28:00 (GMT)
committerJason Evans <jasone@canonware.com>2012-04-04 02:25:48 (GMT)
commit01b3fe55ff3ac8e4aa689f09fcb0729da8037638 (patch)
tree259b126e311fb6c6526443cc813d619953d1bad7 /src/arena.c
parent633aaff96787db82c06d35baf012de197a1a1902 (diff)
downloadjemalloc-01b3fe55ff3ac8e4aa689f09fcb0729da8037638.zip
jemalloc-01b3fe55ff3ac8e4aa689f09fcb0729da8037638.tar.gz
jemalloc-01b3fe55ff3ac8e4aa689f09fcb0729da8037638.tar.bz2
Add a0malloc(), a0calloc(), and a0free().
Add a0malloc(), a0calloc(), and a0free(), which are used by FreeBSD's libc to allocate/deallocate TLS in static binaries.
Diffstat (limited to 'src/arena.c')
-rw-r--r--src/arena.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arena.c b/src/arena.c
index b7e1422..6444099 100644
--- a/src/arena.c
+++ b/src/arena.c
@@ -1888,7 +1888,7 @@ arena_ralloc_no_move(void *ptr, size_t oldsize, size_t size, size_t extra,
void *
arena_ralloc(void *ptr, size_t oldsize, size_t size, size_t extra,
- size_t alignment, bool zero)
+ size_t alignment, bool zero, bool try_tcache)
{
void *ret;
size_t copysize;
@@ -1909,7 +1909,7 @@ arena_ralloc(void *ptr, size_t oldsize, size_t size, size_t extra,
return (NULL);
ret = ipalloc(usize, alignment, zero);
} else
- ret = arena_malloc(size + extra, zero);
+ ret = arena_malloc(NULL, size + extra, zero, try_tcache);
if (ret == NULL) {
if (extra == 0)
@@ -1921,7 +1921,7 @@ arena_ralloc(void *ptr, size_t oldsize, size_t size, size_t extra,
return (NULL);
ret = ipalloc(usize, alignment, zero);
} else
- ret = arena_malloc(size, zero);
+ ret = arena_malloc(NULL, size, zero, try_tcache);
if (ret == NULL)
return (NULL);