Home
last modified time | relevance | path

Searched refs:zmalloc_size (Results 1 – 5 of 5) sorted by relevance

/f-stack/app/redis-5.0.5/src/
H A Dzmalloc.h43 #define zmalloc_size(p) tc_malloc_size(p) macro
53 #define zmalloc_size(p) je_malloc_usable_size(p) macro
61 #define zmalloc_size(p) malloc_size(p) macro
69 #define zmalloc_size(p) malloc_usable_size(p) macro
100 size_t zmalloc_size(void *ptr);
103 #define zmalloc_usable(p) zmalloc_size(p)
H A Dzmalloc.c103 update_zmalloc_stat_alloc(zmalloc_size(ptr)); in zmalloc()
119 update_zmalloc_stat_alloc(zmalloc_size(ptr)); in zmalloc_no_tcache()
125 update_zmalloc_stat_free(zmalloc_size(ptr)); in zfree_no_tcache()
135 update_zmalloc_stat_alloc(zmalloc_size(ptr)); in zcalloc()
153 oldsize = zmalloc_size(ptr); in zrealloc()
158 update_zmalloc_stat_alloc(zmalloc_size(newptr)); in zrealloc()
177 size_t zmalloc_size(void *ptr) { in zmalloc_size() function
186 return zmalloc_size(ptr)-PREFIX_SIZE; in zmalloc_usable()
198 update_zmalloc_stat_free(zmalloc_size(ptr)); in zfree()
H A Dobject.c840 elesize += sizeof(struct dictEntry) + zmalloc_size(znode); in objectComputeSize()
982 mem += zmalloc_size(server.repl_backlog); in getMemoryOverheadData()
H A Dnetworking.c44 return zmalloc_size(sh); in sdsZmallocSize()
53 case OBJ_ENCODING_EMBSTR: return zmalloc_size(o)-sizeof(robj); in getStringObjectSdsUsedMemory()
H A Ddefrag.c75 size = zmalloc_size(ptr); in activeDefragAlloc()