diff options
author | Jason Evans <jasone@canonware.com> | 2016-12-22 22:39:10 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2016-12-27 02:08:28 (GMT) |
commit | a0dd3a4483e2e72ee80e70424a6522f873f2c7ff (patch) | |
tree | 35653ce115166355fd3989dff22714dc0402bf15 /src/rtree.c | |
parent | a6e86810d83aba0d94d0f6423ed09e8e6e0909fa (diff) | |
download | jemalloc-a0dd3a4483e2e72ee80e70424a6522f873f2c7ff.zip jemalloc-a0dd3a4483e2e72ee80e70424a6522f873f2c7ff.tar.gz jemalloc-a0dd3a4483e2e72ee80e70424a6522f873f2c7ff.tar.bz2 |
Implement per arena base allocators.
Add/rename related mallctls:
- Add stats.arenas.<i>.base .
- Rename stats.arenas.<i>.metadata to stats.arenas.<i>.internal .
- Add stats.arenas.<i>.resident .
Modify the arenas.extend mallctl to take an optional (extent_hooks_t *)
argument so that it is possible for all base allocations to be serviced
by the specified extent hooks.
This resolves #463.
Diffstat (limited to 'src/rtree.c')
-rw-r--r-- | src/rtree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rtree.c b/src/rtree.c index b6b9ed7..fd5e85d 100644 --- a/src/rtree.c +++ b/src/rtree.c @@ -72,7 +72,8 @@ static rtree_elm_t * rtree_node_alloc(tsdn_t *tsdn, rtree_t *rtree, size_t nelms) { - return ((rtree_elm_t *)base_alloc(tsdn, nelms * sizeof(rtree_elm_t))); + return ((rtree_elm_t *)base_alloc(tsdn, b0get(), nelms * + sizeof(rtree_elm_t), CACHELINE)); } #ifdef JEMALLOC_JET #undef rtree_node_alloc |