| /redis-3.2.3/deps/jemalloc/include/jemalloc/ |
| H A D | jemalloc_typedefs.h.in | 3 * chunk_alloc(void *new_addr, size_t size, size_t alignment, bool *zero, 6 typedef void *(chunk_alloc_t)(void *, size_t, size_t, bool *, bool *, unsigned); 16 * chunk_commit(void *chunk, size_t size, size_t offset, size_t length, 19 typedef bool (chunk_commit_t)(void *, size_t, size_t, size_t, unsigned); 23 * chunk_decommit(void *chunk, size_t size, size_t offset, size_t length, 26 typedef bool (chunk_decommit_t)(void *, size_t, size_t, size_t, unsigned); 30 * chunk_purge(void *chunk, size_t size, size_t offset, size_t length, 33 typedef bool (chunk_purge_t)(void *, size_t, size_t, size_t, unsigned); 37 * chunk_split(void *chunk, size_t size, size_t size_a, size_t size_b, 40 typedef bool (chunk_split_t)(void *, size_t, size_t, size_t, bool, unsigned); [all …]
|
| H A D | jemalloc_protos.h.in | 11 void JEMALLOC_NOTHROW *@je_@malloc(size_t size) 14 void JEMALLOC_NOTHROW *@je_@calloc(size_t num, size_t size) 17 size_t alignment, size_t size) JEMALLOC_CXX_THROW JEMALLOC_ATTR(nonnull(1)); 20 size_t size) JEMALLOC_CXX_THROW JEMALLOC_ATTR(malloc) 34 JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW @je_@xallocx(void *ptr, size_t size, 35 size_t extra, int flags); 41 JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW @je_@nallocx(size_t size, int flags) 45 void *oldp, size_t *oldlenp, void *newp, size_t newlen); 47 size_t *mibp, size_t *miblenp); 49 size_t miblen, void *oldp, size_t *oldlenp, void *newp, size_t newlen); [all …]
|
| /redis-3.2.3/deps/jemalloc/include/jemalloc/internal/ |
| H A D | arena.h | 441 size_t oldsize, size_t usize); 443 size_t oldsize, size_t usize); 445 size_t oldsize, size_t usize, bool *zero); 520 size_t arena_mapbitsp_read(size_t *mapbitsp); 522 size_t arena_mapbits_size_decode(size_t mapbits); 534 size_t arena_mapbits_size_encode(size_t size); 536 size_t size, size_t flags); 542 size_t size, size_t flags); 546 size_t runind, szind_t binind, size_t flags); 771 arena_mapbitsp_write(size_t *mapbitsp, size_t mapbits) in arena_mapbitsp_write() [all …]
|
| H A D | ctl.h | 24 int (*ctl)(const size_t *, size_t, void *, size_t *, 25 void *, size_t); 30 const ctl_named_node_t *(*index)(const size_t *, size_t, size_t); 38 size_t pactive; 39 size_t pdirty; 55 size_t active; 56 size_t metadata; 57 size_t resident; 58 size_t mapped; 69 int ctl_nametomib(const char *name, size_t *mibp, size_t *miblenp); [all …]
|
| H A D | chunk.h | 16 ((size_t)((uintptr_t)(a) & chunksize_mask)) 40 extern size_t opt_lg_chunk; 45 extern size_t chunksize; 47 extern size_t chunk_npages; 57 void *chunk_alloc_base(size_t size); 59 void *new_addr, size_t size, size_t alignment, bool *zero, 62 void *new_addr, size_t size, size_t alignment, bool *zero, bool *commit); 64 void *chunk, size_t size, bool committed); 68 void *chunk, size_t size, bool committed); 70 size_t length); [all …]
|
| H A D | stats.h | 44 size_t curregs; 62 size_t curruns; 86 size_t curruns; 98 size_t curhchunks; 103 size_t mapped; 118 size_t metadata_mapped; 122 size_t allocated_large; 127 size_t allocated_huge; 144 extern size_t stats_cactive; 160 JEMALLOC_INLINE size_t [all …]
|
| H A D | jemalloc_internal.h.in | 520 size_t s2u_compute(size_t size); 521 size_t s2u_lookup(size_t size); 522 size_t s2u(size_t size); 523 size_t sa2u(size_t size, size_t alignment); 614 size_t ret = (size_t)index2size_tab[index]; 680 sa2u(size_t size, size_t alignment) 834 size_t u2rz(size_t usize); 849 bool ixalloc(void *ptr, size_t oldsize, size_t size, size_t extra, 1082 iralloct(tsd_t *tsd, void *ptr, size_t oldsize, size_t size, size_t alignment, 1104 iralloc(tsd_t *tsd, void *ptr, size_t oldsize, size_t size, size_t alignment, [all …]
|
| H A D | huge.h | 12 void *huge_malloc(tsd_t *tsd, arena_t *arena, size_t size, bool zero, 14 void *huge_palloc(tsd_t *tsd, arena_t *arena, size_t size, size_t alignment, 16 bool huge_ralloc_no_move(void *ptr, size_t oldsize, size_t usize_min, 17 size_t usize_max, bool zero); 18 void *huge_ralloc(tsd_t *tsd, arena_t *arena, void *ptr, size_t oldsize, 19 size_t usize, size_t alignment, bool zero, tcache_t *tcache); 21 typedef void (huge_dalloc_junk_t)(void *, size_t); 26 size_t huge_salloc(const void *ptr);
|
| H A D | pages.h | 12 void *pages_map(void *addr, size_t size); 13 void pages_unmap(void *addr, size_t size); 14 void *pages_trim(void *addr, size_t alloc_size, size_t leadsize, 15 size_t size); 16 bool pages_commit(void *addr, size_t size); 17 bool pages_decommit(void *addr, size_t size); 18 bool pages_purge(void *addr, size_t size);
|
| H A D | util.h | 168 size_t pow2_ceil(size_t x); 169 size_t lg_floor(size_t x); 196 JEMALLOC_INLINE size_t 197 pow2_ceil(size_t x) in pow2_ceil() 214 JEMALLOC_INLINE size_t 215 lg_floor(size_t x) in lg_floor() 217 size_t ret; in lg_floor() 228 JEMALLOC_INLINE size_t 229 lg_floor(size_t x) in lg_floor() 246 lg_floor(size_t x) in lg_floor() [all …]
|
| H A D | prof.h | 281 extern size_t lg_prof_sample; 284 void prof_malloc_sample_object(const void *ptr, size_t usize, 291 size_t prof_tdata_count(void); 292 size_t prof_bt_count(void); 304 void prof_reset(tsd_t *tsd, size_t lg_sample); 340 void prof_malloc_sample_object(const void *ptr, size_t usize, 343 void prof_realloc(tsd_t *tsd, const void *ptr, size_t usize, 345 size_t old_usize, prof_tctx_t *old_tctx); 346 void prof_free(tsd_t *tsd, const void *ptr, size_t usize); 482 prof_malloc(const void *ptr, size_t usize, prof_tctx_t *tctx) in prof_malloc() [all …]
|
| /redis-3.2.3/src/ |
| H A D | zmalloc.c | 92 size_t _n = (__n); \ 102 size_t _n = (__n); \ 132 *((size_t*)ptr) = size; in zmalloc() 146 *((size_t*)ptr) = size; in zcalloc() 156 size_t oldsize; in zrealloc() 187 size_t size = *((size_t*)realptr); in zmalloc_size() 198 size_t oldsize; in zfree() 222 size_t um; in zmalloc_used_memory() 266 size_t rss; in zmalloc_get_rss() 340 size_t bytes = 0; in zmalloc_get_smap_bytes_by_field() [all …]
|
| H A D | rio.h | 43 size_t (*read)(struct _rio *, void *buf, size_t len); 44 size_t (*write)(struct _rio *, const void *buf, size_t len); 58 size_t processed_bytes; 61 size_t max_processing_chunk; 93 static inline size_t rioWrite(rio *r, const void *buf, size_t len) { in rioWrite() 106 static inline size_t rioRead(rio *r, void *buf, size_t len) { in rioRead() 133 size_t rioWriteBulkCount(rio *r, char prefix, int count); 134 size_t rioWriteBulkString(rio *r, const char *buf, size_t len); 135 size_t rioWriteBulkLongLong(rio *r, long long l); 136 size_t rioWriteBulkDouble(rio *r, double d); [all …]
|
| H A D | zmalloc.h | 68 void *zmalloc(size_t size); 69 void *zcalloc(size_t size); 70 void *zrealloc(void *ptr, size_t size); 73 size_t zmalloc_used_memory(void); 75 void zmalloc_set_oom_handler(void (*oom_handler)(size_t)); 76 float zmalloc_get_fragmentation_ratio(size_t rss); 77 size_t zmalloc_get_rss(void); 78 size_t zmalloc_get_private_dirty(void); 79 size_t zmalloc_get_smap_bytes_by_field(char *field); 80 size_t zmalloc_get_memory_size(void); [all …]
|
| H A D | rio.c | 61 static size_t rioBufferWrite(rio *r, const void *buf, size_t len) { in rioBufferWrite() 68 static size_t rioBufferRead(rio *r, void *buf, size_t len) { in rioBufferRead() 109 static size_t rioFileWrite(rio *r, const void *buf, size_t len) { in rioFileWrite() 110 size_t retval; in rioFileWrite() 126 static size_t rioFileRead(rio *r, void *buf, size_t len) { in rioFileRead() 169 static size_t rioFdsetWrite(rio *r, const void *buf, size_t len) { in rioFdsetWrite() 203 size_t nwritten = 0; in rioFdsetWrite() 234 static size_t rioFdsetRead(rio *r, void *buf, size_t len) { in rioFdsetRead() 326 size_t rioWriteBulkString(rio *r, const char *buf, size_t len) { in rioWriteBulkString() 327 size_t nwritten; in rioWriteBulkString() [all …]
|
| /redis-3.2.3/deps/jemalloc/src/ |
| H A D | ctl.c | 46 size_t *oldlenp, void *newp, size_t newlen); 50 size_t miblen, size_t i); 63 size_t *mibp, size_t *depthp); 944 ctl_bymib(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp, in ctl_bymib() 1080 n##_ctl(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp, \ 1103 n##_ctl(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp, \ 1709 arena_i_index(const size_t *mib, size_t miblen, size_t i) in arena_i_index() 1810 arenas_bin_i_index(const size_t *mib, size_t miblen, size_t i) in CTL_RO_NL_GEN() 1821 arenas_lrun_i_index(const size_t *mib, size_t miblen, size_t i) in CTL_RO_NL_GEN() 1832 arenas_hchunk_i_index(const size_t *mib, size_t miblen, size_t i) in CTL_RO_NL_GEN() [all …]
|
| H A D | chunk.c | 11 static size_t curchunks; 17 size_t chunksize; 19 size_t chunk_npages; 313 size_t i; in chunk_recycle() 314 size_t *p = (size_t *)(uintptr_t)ret; in chunk_recycle() 452 size_t size, size_t alignment, bool *zero, bool *commit) in chunk_alloc_wrapper() 620 chunk_commit_default(void *chunk, size_t size, size_t offset, size_t length, in chunk_commit_default() 629 chunk_decommit_default(void *chunk, size_t size, size_t offset, size_t length, in chunk_decommit_default() 652 chunk_purge_default(void *chunk, size_t size, size_t offset, size_t length, in chunk_purge_default() 662 size_t size, size_t offset, size_t length) in chunk_purge_wrapper() [all …]
|
| H A D | stats.c | 10 size_t mib[6]; \ 11 size_t miblen = sizeof(mib) / sizeof(size_t); \ 20 size_t miblen = sizeof(mib) / sizeof(size_t); \ 53 size_t page; in stats_arena_bins_print() 96 size_t); in stats_arena_bins_print() 233 size_t); in stats_arena_hchunks_print() 303 size_t); in stats_arena_print() 313 size_t); in stats_arena_print() 344 size_t); in stats_arena_print() 346 size_t); in stats_arena_print() [all …]
|
| H A D | zone.c | 24 static void *zone_calloc(malloc_zone_t *zone, size_t num, size_t size); 32 size_t size); 34 size_t size); 37 static size_t zone_good_size(malloc_zone_t *zone, size_t size); 46 static size_t 63 zone_malloc(malloc_zone_t *zone, size_t size) in zone_malloc() 70 zone_calloc(malloc_zone_t *zone, size_t num, size_t size) in zone_calloc() 77 zone_valloc(malloc_zone_t *zone, size_t size) in zone_valloc() 110 zone_memalign(malloc_zone_t *zone, size_t alignment, size_t size) in zone_memalign() 144 static size_t [all …]
|
| H A D | jemalloc.c | 353 bootstrap_calloc(size_t num, size_t size) in bootstrap_calloc() 1396 imalloc_body(size_t size, tsd_t **tsd, size_t *usize) in imalloc_body() 1487 imemalign(void **memptr, size_t alignment, size_t size, size_t min_alignment) in imemalign() 1564 je_aligned_alloc(size_t alignment, size_t size) in JEMALLOC_ATTR() 1619 je_calloc(size_t num, size_t size) in JEMALLOC_ATTR() 1855 je_memalign(size_t alignment, size_t size) in JEMALLOC_ATTR() 2228 ixallocx_helper(void *ptr, size_t old_usize, size_t size, size_t extra, in ixallocx_helper() 2241 ixallocx_prof_sample(void *ptr, size_t old_usize, size_t size, size_t extra, in ixallocx_prof_sample() 2255 size_t extra, size_t alignment, bool zero) in ixallocx_prof() 2454 je_mallctlbymib(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp, in je_mallctlbymib() [all …]
|
| H A D | arena.c | 11 size_t map_bias; 358 size_t i; in arena_run_page_validate_zeroed() 381 size_t flag_dirty, size_t flag_decommitted, size_t need_pages) in arena_run_split_remove() 877 size_t usize, size_t alignment, bool *zero, size_t csize) in arena_chunk_alloc_huge_hard() 1002 size_t udiff, size_t cdiff) in arena_chunk_ralloc_huge_expand_hard() 1552 size_t *p_run_ind, size_t *p_run_pages, size_t flag_dirty, in arena_run_coalesce() 1763 size_t oldsize, size_t newsize) in arena_run_trim_head() 1803 size_t oldsize, size_t newsize, bool dirty) in arena_run_trim_tail() 2609 size_t oldsize, size_t size) in arena_ralloc_large_shrink() 2645 size_t oldsize, size_t usize_min, size_t usize_max, bool zero) in arena_ralloc_large_grow() [all …]
|
| H A D | huge.c | 37 size_t usize; in huge_malloc() 49 huge_palloc(tsd_t *tsd, arena_t *arena, size_t size, size_t alignment, in huge_palloc() 53 size_t usize; in huge_palloc() 129 huge_ralloc_no_move_similar(void *ptr, size_t oldsize, size_t usize_min, in huge_ralloc_no_move_similar() 132 size_t usize, usize_next; in huge_ralloc_no_move_similar() 188 huge_ralloc_no_move_shrink(void *ptr, size_t oldsize, size_t usize) in huge_ralloc_no_move_shrink() 193 size_t cdiff; in huge_ralloc_no_move_shrink() 283 huge_ralloc_no_move(void *ptr, size_t oldsize, size_t usize_min, in huge_ralloc_no_move() 336 size_t copysize; in huge_ralloc() 385 size_t [all …]
|
| /redis-3.2.3/deps/jemalloc/test/unit/ |
| H A D | mallctl.c | 6 size_t sz; in TEST_BEGIN() 31 size_t mib[1]; in TEST_BEGIN() 32 size_t miblen; in TEST_BEGIN() 43 size_t sz; in TEST_BEGIN() 44 size_t mib[1]; in TEST_BEGIN() 45 size_t miblen; in TEST_BEGIN() 104 size_t mib[4]; in TEST_BEGIN() 105 size_t miblen; in TEST_BEGIN() 193 size_t mib[4]; in TEST_BEGIN() 388 size_t mib[3]; in TEST_BEGIN() [all …]
|
| /redis-3.2.3/deps/jemalloc/test/integration/ |
| H A D | mallocx.c | 7 size_t z; in get_nsizes_impl() 23 static size_t 26 size_t ret; in get_size_impl() 27 size_t z; in get_size_impl() 28 size_t mib[4]; in get_size_impl() 29 size_t miblen = 4; in get_size_impl() 31 z = sizeof(size_t); in get_size_impl() 35 z = sizeof(size_t); in get_size_impl() 42 static size_t 86 size_t sz; in TEST_BEGIN() [all …]
|
| H A D | xallocx.c | 6 size_t sz, tsz; in TEST_BEGIN() 22 size_t sz, tsz; in TEST_BEGIN() 55 size_t z; in get_nsizes_impl() 85 static size_t 88 size_t ret; in get_size_impl() 89 size_t z; in get_size_impl() 104 static size_t 111 static size_t 118 static size_t 375 size_t i; in validate_fill() [all …]
|