| /redis-3.2.3/deps/jemalloc/test/unit/ |
| H A D | stats.c | 9 sz = sizeof(cactive); in TEST_BEGIN() 13 sz = sizeof(size_t); in TEST_BEGIN() 42 size_t sz; in TEST_BEGIN() local 51 sz = sizeof(size_t); in TEST_BEGIN() 54 sz = sizeof(uint64_t); in TEST_BEGIN() 80 size_t sz; in TEST_BEGIN() local 102 sz = sizeof(size_t); in TEST_BEGIN() 146 size_t sz, allocated; in TEST_BEGIN() local 165 sz = sizeof(size_t); in TEST_BEGIN() 209 sz = sizeof(size_t); in TEST_BEGIN() [all …]
|
| H A D | mallctl.c | 6 size_t sz; in TEST_BEGIN() local 20 sz = sizeof(epoch)-1; in TEST_BEGIN() 23 sz = sizeof(epoch)+1; in TEST_BEGIN() 43 size_t sz; in TEST_BEGIN() local 66 sz = sizeof(epoch)-1; in TEST_BEGIN() 69 sz = sizeof(epoch)+1; in TEST_BEGIN() 78 size_t sz = sizeof(old_epoch); in TEST_BEGIN() local 248 size_t sz, psz, qsz; in TEST_BEGIN() local 257 sz = sizeof(unsigned); in TEST_BEGIN() 269 sz = sizeof(unsigned); in TEST_BEGIN() [all …]
|
| H A D | zero.c | 12 size_t sz_prev, sz, i; in test_zero() local 18 for (sz = sallocx(s, 0); sz <= sz_max; in test_zero() 19 sz_prev = sz, sz = sallocx(s, 0)) { in test_zero() 29 for (i = sz_prev; i < sz; i++) { in test_zero() 32 i, sz); in test_zero() 36 if (xallocx(s, sz+1, 0, 0) == sz) { in test_zero() 37 s = (char *)rallocx(s, sz+1, 0); in test_zero()
|
| H A D | junk.c | 73 size_t sz_prev, sz, i; in test_junk() local 88 for (sz = sallocx(s, 0); sz <= sz_max; in test_junk() 89 sz_prev = sz, sz = sallocx(s, 0)) { in test_junk() 99 for (i = sz_prev; i < sz; i++) { in test_junk() 103 "junk-filled", i, sz); in test_junk() 108 if (xallocx(s, sz+1, 0, 0) == sz) { in test_junk() 110 s = (char *)rallocx(s, sz+1, 0); in test_junk() 115 sz); in test_junk() 122 "Expected region of size %zu to be junk-filled", sz); in test_junk()
|
| H A D | prof_reset.c | 31 size_t sz = sizeof(size_t); in get_lg_prof_sample() local 33 assert_d_eq(mallctl("prof.lg_sample", &lg_prof_sample, &sz, NULL, 0), 0, in get_lg_prof_sample() 51 size_t sz; in TEST_BEGIN() local 56 sz = sizeof(size_t); in TEST_BEGIN() 57 assert_d_eq(mallctl("opt.lg_prof_sample", &lg_prof_sample_orig, &sz, in TEST_BEGIN() 256 size_t sz, nsz; in TEST_BEGIN() local 269 sz = sallocx(p, 0); in TEST_BEGIN() 270 assert_zu_eq(xallocx(p, sz, 0, 0), sz, in TEST_BEGIN() 274 nsz = nallocx(sz+1, 0); in TEST_BEGIN() 275 assert_zu_eq(xallocx(p, nsz, 0, 0), sz, in TEST_BEGIN()
|
| H A D | prof_thread_name.c | 12 size_t sz; in mallctl_thread_name_get_impl() local 14 sz = sizeof(thread_name_old); in mallctl_thread_name_get_impl() 15 assert_d_eq(mallctl("thread.prof.name", &thread_name_old, &sz, NULL, 0), in mallctl_thread_name_get_impl() 64 size_t sz; in TEST_BEGIN() local 66 sz = sizeof(thread_name_old); in TEST_BEGIN() 67 assert_d_eq(mallctl("thread.prof.name", &thread_name_old, &sz, in TEST_BEGIN()
|
| H A D | prof_gdump.c | 26 size_t sz; in TEST_BEGIN() local 47 sz = sizeof(gdump_old); in TEST_BEGIN() 48 assert_d_eq(mallctl("prof.gdump", &gdump_old, &sz, &gdump, in TEST_BEGIN() 58 sz = sizeof(gdump_old); in TEST_BEGIN() 59 assert_d_eq(mallctl("prof.gdump", &gdump_old, &sz, &gdump, in TEST_BEGIN()
|
| H A D | prof_active.c | 12 size_t sz; in mallctl_bool_get() local 14 sz = sizeof(old); in mallctl_bool_get() 15 assert_d_eq(mallctl(name, &old, &sz, NULL, 0), 0, in mallctl_bool_get() 26 size_t sz; in mallctl_bool_set() local 28 sz = sizeof(old); in mallctl_bool_set() 29 assert_d_eq(mallctl(name, &old, &sz, &val_new, sizeof(val_new)), 0, in mallctl_bool_set()
|
| H A D | size_classes.c | 8 size_t sz, miblen, max_size_class; in get_max_size_class() local 10 sz = sizeof(unsigned); in get_max_size_class() 11 assert_d_eq(mallctl("arenas.nhchunks", &nhchunks, &sz, NULL, 0), 0, in get_max_size_class() 19 sz = sizeof(size_t); in get_max_size_class() 20 assert_d_eq(mallctlbymib(mib, miblen, &max_size_class, &sz, NULL, 0), 0, in get_max_size_class()
|
| /redis-3.2.3/deps/jemalloc/test/integration/ |
| H A D | thread_tcache_enabled.c | 15 size_t sz; in thd_start() local 18 sz = sizeof(bool); in thd_start() 30 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), in thd_start() 36 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start() 41 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start() 46 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start() 51 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start() 57 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start() 63 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start() 69 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start() [all …]
|
| H A D | mallocx.c | 86 size_t sz; in TEST_BEGIN() local 88 for (sz = 1; sz < MAXSZ; sz = nallocx(sz, 0) + 1) { in TEST_BEGIN() 91 nsz = nallocx(sz, 0); in TEST_BEGIN() 93 p = mallocx(sz, 0); in TEST_BEGIN() 100 p = mallocx(sz, 0); in TEST_BEGIN() 131 for (sz = 1; in TEST_BEGIN() 132 sz < 3 * alignment && sz < (1U << 31); in TEST_BEGIN() 139 "size=%zu (%#zx)", alignment, sz, sz); in TEST_BEGIN() 144 "size=%zu (%#zx)", alignment, sz, sz); in TEST_BEGIN() 146 assert_zu_ge(rsz, sz, in TEST_BEGIN() [all …]
|
| H A D | allocated.c | 18 size_t sz, usize; in thd_start() local 20 sz = sizeof(a0); in thd_start() 27 sz = sizeof(ap0); in thd_start() 38 sz = sizeof(d0); in thd_start() 45 sz = sizeof(dp0); in thd_start() 59 sz = sizeof(a1); in thd_start() 60 mallctl("thread.allocated", &a1, &sz, NULL, 0); in thd_start() 61 sz = sizeof(ap1); in thd_start() 62 mallctl("thread.allocatedp", &ap1, &sz, NULL, 0); in thd_start() 76 sz = sizeof(d1); in thd_start() [all …]
|
| H A D | xallocx.c | 6 size_t sz, tsz; in TEST_BEGIN() local 10 sz = sallocx(p, 0); in TEST_BEGIN() 22 size_t sz, tsz; in TEST_BEGIN() local 28 tsz = xallocx(p, sz, sz-42, 0); in TEST_BEGIN() 38 size_t sz, tsz; in TEST_BEGIN() local 395 sz = szmax; in test_zero() 399 sz); in test_zero() 410 sz = szmin; in test_zero() 411 assert_zu_eq(xallocx(p, sz, 0, MALLOCX_ZERO), sz, in test_zero() 416 for (sz = szmin; sz < szmax; sz = nsz) { in test_zero() [all …]
|
| H A D | sdallocx.c | 15 size_t nsz, sz, alignment, total; in TEST_BEGIN() local 26 for (sz = 1; in TEST_BEGIN() 27 sz < 3 * alignment && sz < (1U << 31); in TEST_BEGIN() 28 sz += (alignment >> (LG_SIZEOF_PTR-1)) - 1) { in TEST_BEGIN() 30 nsz = nallocx(sz, MALLOCX_ALIGN(alignment) | in TEST_BEGIN() 32 ps[i] = mallocx(sz, MALLOCX_ALIGN(alignment) | in TEST_BEGIN() 40 sdallocx(ps[i], sz, in TEST_BEGIN()
|
| H A D | overflow.c | 7 size_t sz, miblen, max_size_class; in TEST_BEGIN() local 10 sz = sizeof(unsigned); in TEST_BEGIN() 11 assert_d_eq(mallctl("arenas.nhchunks", &nhchunks, &sz, NULL, 0), 0, in TEST_BEGIN() 19 sz = sizeof(size_t); in TEST_BEGIN() 20 assert_d_eq(mallctlbymib(mib, miblen, &max_size_class, &sz, NULL, 0), 0, in TEST_BEGIN()
|
| H A D | MALLOCX_ARENA.c | 19 size_t sz; in thd_start() local 21 sz = sizeof(arena_ind); in thd_start() 22 assert_d_eq(mallctl("arenas.extend", &arena_ind, &sz, NULL, 0), 0, in thd_start()
|
| H A D | chunk.c | 123 size_t old_size, new_size, large0, large1, huge0, huge1, huge2, sz; in TEST_BEGIN() local 153 sz = sizeof(size_t); in TEST_BEGIN() 154 assert_d_eq(mallctl("arenas.lrun.0.size", &large0, &sz, NULL, 0), 0, in TEST_BEGIN() 156 assert_d_eq(mallctl("arenas.lrun.1.size", &large1, &sz, NULL, 0), 0, in TEST_BEGIN() 160 assert_d_eq(mallctl("arenas.hchunk.0.size", &huge0, &sz, NULL, 0), 0, in TEST_BEGIN() 162 assert_d_eq(mallctl("arenas.hchunk.1.size", &huge1, &sz, NULL, 0), 0, in TEST_BEGIN() 164 assert_d_eq(mallctl("arenas.hchunk.2.size", &huge2, &sz, NULL, 0), 0, in TEST_BEGIN()
|
| H A D | rallocx.c | 141 size_t lg_align, sz; in TEST_BEGIN() local 157 sz = sallocx(q, 0); in TEST_BEGIN() 158 if ((sz << 1) <= MAX_VALIDATE) { in TEST_BEGIN() 159 assert_false(validate_fill(q, 0, 0, sz), in TEST_BEGIN() 165 (void *)((uintptr_t)q+sz-MAX_VALIDATE), in TEST_BEGIN()
|
| /redis-3.2.3/src/ |
| H A D | quicklist.c | 143 node->sz = 0; in quicklistCreateNode() 192 lzf->sz + MIN_COMPRESS_IMPROVE >= node->sz) { in __quicklistCompressNode() 418 #define sizeMeetsSafetyLimit(sz) ((sz) <= SIZE_SAFETY_LIMIT) argument 427 if (sz < 254) in _quicklistNodeAllowInsert() 433 if (sz < 64) in _quicklistNodeAllowInsert() 441 unsigned int new_sz = node->sz + sz + ziplist_overhead; in _quicklistNodeAllowInsert() 460 unsigned int merge_sz = a->sz + b->sz - 11; in _quicklistNodeAllowMerge() 1207 node->sz = current->sz; in quicklistDup() 1338 if (sz) in quicklistPopCustom() 1339 *sz = 0; in quicklistPopCustom() [all …]
|
| H A D | quicklist.h | 48 unsigned int sz; /* ziplist size in bytes */ member 63 unsigned int sz; /* LZF size in bytes*/ member 96 unsigned int sz; member 124 int quicklistPushHead(quicklist *quicklist, void *value, const size_t sz); 125 int quicklistPushTail(quicklist *quicklist, void *value, const size_t sz); 126 void quicklistPush(quicklist *quicklist, void *value, const size_t sz, 134 void *value, const size_t sz); 136 void *value, const size_t sz); 139 int sz); 153 unsigned int *sz, long long *sval, [all …]
|
| H A D | util.c | 699 int sz; in test_ll2string() local 702 sz = ll2string(buf, sizeof buf, v); in test_ll2string() 703 assert(sz == 1); in test_ll2string() 707 sz = ll2string(buf, sizeof buf, v); in test_ll2string() 708 assert(sz == 2); in test_ll2string() 712 sz = ll2string(buf, sizeof buf, v); in test_ll2string() 713 assert(sz == 2); in test_ll2string() 718 assert(sz == 3); in test_ll2string() 723 assert(sz == 11); in test_ll2string() 728 assert(sz == 20); in test_ll2string() [all …]
|
| /redis-3.2.3/deps/lua/src/ |
| H A D | lua_struct.c | 122 int sz = getnum(L, fmt, sizeof(int)); in optsize() local 123 if (sz > MAXINTSIZE) in optsize() 125 sz, MAXINTSIZE); in optsize() 126 return sz; in optsize()
|
| H A D | lua.h | 58 typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz); 60 typedef int (*lua_Writer) (lua_State *L, const void* p, size_t sz, void* ud); 126 LUA_API int (lua_checkstack) (lua_State *L, int sz); 182 LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz);
|
| H A D | lauxlib.h | 61 LUALIB_API void (luaL_checkstack) (lua_State *L, int sz, const char *msg); 78 LUALIB_API int (luaL_loadbuffer) (lua_State *L, const char *buff, size_t sz,
|
| /redis-3.2.3/deps/jemalloc/src/ |
| H A D | stats.c | 5 size_t sz = sizeof(t); \ 6 xmallctl(n, v, &sz, NULL, 0); \ 12 size_t sz = sizeof(t); \ 15 xmallctlbymib(mib, miblen, v, &sz, NULL, 0); \ 21 size_t sz = sizeof(t); \ 25 xmallctlbymib(mib, miblen, v, &sz, NULL, 0); \
|