summaryrefslogtreecommitdiffstats
path: root/contrib/jemalloc/src/tcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/jemalloc/src/tcache.c')
-rw-r--r--contrib/jemalloc/src/tcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/jemalloc/src/tcache.c b/contrib/jemalloc/src/tcache.c
index 60244c4..47e14f3 100644
--- a/contrib/jemalloc/src/tcache.c
+++ b/contrib/jemalloc/src/tcache.c
@@ -288,7 +288,7 @@ tcache_create(arena_t *arena)
else if (size <= tcache_maxclass)
tcache = (tcache_t *)arena_malloc_large(arena, size, true);
else
- tcache = (tcache_t *)icalloc(size);
+ tcache = (tcache_t *)icallocx(size, false, arena);
if (tcache == NULL)
return (NULL);
@@ -364,7 +364,7 @@ tcache_destroy(tcache_t *tcache)
arena_dalloc_large(arena, chunk, tcache);
} else
- idalloc(tcache);
+ idallocx(tcache, false);
}
void
OpenPOWER on IntegriCloud