diff options
| author | Jason Evans <jasone@canonware.com> | 2015-01-31 05:49:19 (GMT) |
|---|---|---|
| committer | Jason Evans <jasone@canonware.com> | 2015-02-05 00:51:53 (GMT) |
| commit | f500a10b2e94852b867334703ad77467dcfd2ddd (patch) | |
| tree | 261233df873ca379c1fb8d70d8e528030fcd6d5e /include | |
| parent | 918a1a5b3f09cb456c25be9a2555a8fea6a9bb94 (diff) | |
| download | jemalloc-f500a10b2e94852b867334703ad77467dcfd2ddd.zip jemalloc-f500a10b2e94852b867334703ad77467dcfd2ddd.tar.gz jemalloc-f500a10b2e94852b867334703ad77467dcfd2ddd.tar.bz2 | |
Refactor base_alloc() to guarantee demand-zeroed memory.
Refactor base_alloc() to guarantee that allocations are carved from
demand-zeroed virtual memory. This supports sparse data structures such
as multi-page radix tree nodes.
Enhance base_alloc() to keep track of fragments which were too small to
support previous allocation requests, and try to consume them during
subsequent requests. This becomes important when request sizes commonly
approach or exceed the chunk size (as could radix tree node
allocations).
Diffstat (limited to 'include')
| -rw-r--r-- | include/jemalloc/internal/base.h | 1 | ||||
| -rw-r--r-- | include/jemalloc/internal/private_symbols.txt | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/include/jemalloc/internal/base.h b/include/jemalloc/internal/base.h index 18b7a72..a0798ee 100644 --- a/include/jemalloc/internal/base.h +++ b/include/jemalloc/internal/base.h @@ -10,7 +10,6 @@ #ifdef JEMALLOC_H_EXTERNS void *base_alloc(size_t size); -void *base_calloc(size_t number, size_t size); extent_node_t *base_node_alloc(void); void base_node_dalloc(extent_node_t *node); size_t base_allocated_get(void); diff --git a/include/jemalloc/internal/private_symbols.txt b/include/jemalloc/internal/private_symbols.txt index ba7ab38..105e664 100644 --- a/include/jemalloc/internal/private_symbols.txt +++ b/include/jemalloc/internal/private_symbols.txt @@ -103,7 +103,6 @@ atomic_sub_z base_alloc base_allocated_get base_boot -base_calloc base_node_alloc base_node_dalloc base_postfork_child |
