Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 43) sorted by relevance

12

/redis-3.2.3/deps/jemalloc/src/
H A Dpages.c9 void *ret; in pages_map() local
27 assert(ret != NULL); in pages_map()
29 if (ret == MAP_FAILED) in pages_map()
30 ret = NULL; in pages_map()
35 pages_unmap(ret, size); in pages_map()
36 ret = NULL; in pages_map()
39 assert(ret == NULL || (addr == NULL && ret != addr) in pages_map()
41 return (ret); in pages_map()
81 if (new_addr == ret) in pages_trim()
82 return (ret); in pages_trim()
[all …]
H A Dchunk_mmap.c9 void *ret; in chunk_alloc_mmap_slow() local
25 } while (ret == NULL); in chunk_alloc_mmap_slow()
27 assert(ret != NULL); in chunk_alloc_mmap_slow()
30 *commit = pages_decommit(ret, size); in chunk_alloc_mmap_slow()
31 return (ret); in chunk_alloc_mmap_slow()
37 void *ret; in chunk_alloc_mmap() local
56 ret = pages_map(NULL, size); in chunk_alloc_mmap()
57 if (ret == NULL) in chunk_alloc_mmap()
61 pages_unmap(ret, size); in chunk_alloc_mmap()
65 assert(ret != NULL); in chunk_alloc_mmap()
[all …]
H A Dchunk_dss.c46 dss_prec_t ret; in chunk_dss_prec_get() local
51 ret = dss_prec_default; in chunk_dss_prec_get()
53 return (ret); in chunk_dss_prec_get()
92 void *ret, *cpad, *dss_next; in chunk_alloc_dss() local
143 ret, size); in chunk_alloc_dss()
144 memset(ret, 0, size); in chunk_alloc_dss()
148 return (ret); in chunk_alloc_dss()
160 bool ret; in chunk_in_dss() local
167 ret = true; in chunk_in_dss()
169 ret = false; in chunk_in_dss()
[all …]
H A Dctl.c803 int ret; in ctl_lookup() local
891 ret = 0; in ctl_lookup()
900 int ret; in ctl_byname() local
931 int ret; in ctl_nametomib() local
947 int ret; in ctl_bymib() local
1227 int ret; in CTL_RO_NL_GEN() local
1236 ret = 0; in CTL_RO_NL_GEN()
1293 int ret; in CTL_RO_BOOL_CONFIG_GEN() local
1333 ret = 0; in CTL_RO_BOOL_CONFIG_GEN()
1352 int ret; in CTL_TSD_RO_NL_CGEN() local
[all …]
H A Dchunk.c205 void *ret; in chunk_recycle() local
321 return (ret); in chunk_recycle()
334 void *ret; in chunk_alloc_core() local
373 void *ret; in chunk_alloc_base() local
389 return (ret); in chunk_alloc_base()
396 void *ret; in chunk_alloc_cache() local
413 return (ret); in chunk_alloc_cache()
436 void *ret; in chunk_alloc_default() local
447 return (ret); in chunk_alloc_default()
454 void *ret; in chunk_alloc_wrapper() local
[all …]
H A Dprof.c153 return (ret); in prof_tctx_comp()
166 if (ret == 0) in rb_gen()
168 return (ret); in rb_gen()
177 int ret; in rb_gen() local
761 } ret; in prof_lookup() local
978 bool ret; in prof_dump_close() local
1022 bool ret; in prof_dump_printf() local
1287 bool ret; in prof_dump_header() local
1313 bool ret; in prof_dump_gctx() local
1380 bool ret; in prof_dump_maps() local
[all …]
H A Dutil.c170 ret = 0; in malloc_strtoumax()
178 ret = 0; in malloc_strtoumax()
183 ret *= b; in malloc_strtoumax()
184 ret += digit; in malloc_strtoumax()
194 ret = -ret; in malloc_strtoumax()
211 return (ret); in malloc_strtoumax()
312 int ret; in malloc_vsnprintf() local
580 ret = i; in malloc_vsnprintf()
586 return (ret); in malloc_vsnprintf()
593 int ret; in malloc_snprintf() local
[all …]
H A Dquarantine.c64 quarantine_t *ret; in quarantine_grow() local
66 ret = quarantine_init(tsd, quarantine->lg_maxobjs + 1); in quarantine_grow()
67 if (ret == NULL) { in quarantine_grow()
72 ret->curbytes = quarantine->curbytes; in quarantine_grow()
73 ret->curobjs = quarantine->curobjs; in quarantine_grow()
77 memcpy(ret->objs, &quarantine->objs[quarantine->first], in quarantine_grow()
85 memcpy(ret->objs, &quarantine->objs[quarantine->first], ncopy_a in quarantine_grow()
87 memcpy(&ret->objs[ncopy_a], quarantine->objs, ncopy_b * in quarantine_grow()
92 tsd_quarantine_set(tsd, ret); in quarantine_grow()
93 return (ret); in quarantine_grow()
H A Dbase.c81 void *ret; in base_alloc() local
104 ret = NULL; in base_alloc()
108 ret = extent_node_addr_get(node); in base_alloc()
110 extent_node_addr_set(node, (void *)((uintptr_t)ret + csize)); in base_alloc()
121 base_resident += PAGE_CEILING((uintptr_t)ret + csize) - in base_alloc()
122 PAGE_CEILING((uintptr_t)ret); in base_alloc()
124 JEMALLOC_VALGRIND_MAKE_MEM_DEFINED(ret, csize); in base_alloc()
127 return (ret); in base_alloc()
H A Djemalloc.c576 arena_t *ret; in arena_choose_hard() local
631 return (ret); in arena_choose_hard()
1228 bool ret; in malloc_init_hard_a0() local
1420 void *ret; in JEMALLOC_ATTR() local
1489 int ret; in imemalign() local
1532 ret = 0; in imemalign()
1566 void *ret; in JEMALLOC_ATTR() local
1570 ret = NULL; in JEMALLOC_ATTR()
1621 void *ret; in JEMALLOC_ATTR() local
1772 void *ret; in je_realloc() local
[all …]
H A Dextent.c20 int ret; in extent_szad_comp() local
28 ret = (a_qsize > b_qsize) - (a_qsize < b_qsize); in extent_szad_comp()
29 if (ret == 0) { in extent_szad_comp()
33 ret = (a_addr > b_addr) - (a_addr < b_addr); in extent_szad_comp()
36 return (ret); in extent_szad_comp()
H A Dckh.c248 bool ret; in ckh_grow() local
270 ret = true; in ckh_grow()
276 ret = true; in ckh_grow()
296 ret = false; in ckh_grow()
298 return (ret); in ckh_grow()
353 bool ret; in ckh_new() local
391 ret = true; in ckh_new()
397 ret = true; in ckh_new()
401 ret = false; in ckh_new()
461 bool ret; in ckh_insert() local
[all …]
H A Dhuge.c52 void *ret; in huge_palloc() local
82 extent_node_init(node, arena, ret, size, is_zeroed, true); in huge_palloc()
84 if (huge_node_set(ret, node)) { in huge_palloc()
85 arena_chunk_dalloc_huge(arena, ret, size); in huge_palloc()
98 memset(ret, 0, size); in huge_palloc()
100 memset(ret, 0xa5, size); in huge_palloc()
102 return (ret); in huge_palloc()
335 void *ret; in huge_ralloc() local
349 if (ret == NULL) in huge_ralloc()
353 memcpy(ret, ptr, copysize); in huge_ralloc()
[all …]
H A Dzone.c79 void *ret = NULL; /* Assignment avoids useless compiler warning. */ in zone_valloc() local
81 je_posix_memalign(&ret, PAGE, size); in zone_valloc()
83 return (ret); in zone_valloc()
112 void *ret = NULL; /* Assignment avoids useless compiler warning. */ in zone_memalign() local
114 je_posix_memalign(&ret, alignment, size); in zone_memalign()
116 return (ret); in zone_memalign()
H A Darena.c174 int ret; in arena_avail_comp() local
194 ret = -1; in arena_avail_comp()
198 return (ret); in arena_avail_comp()
294 void *ret; in arena_run_reg_alloc() local
879 void *ret; in arena_chunk_alloc_huge_hard() local
902 void *ret; in arena_chunk_alloc_huge() local
2150 void *ret; in arena_malloc_small() local
2204 void *ret; in arena_malloc_large() local
2269 void *ret; in arena_palloc_large() local
2354 void *ret; in arena_palloc() local
[all …]
/redis-3.2.3/deps/jemalloc/include/jemalloc/internal/
H A Drb.h330 ret = NULL; \
339 ret = NULL; \
356 ret = tnode; \
367 ret = (NULL); \
386 ret = tnode; \
395 ret = (NULL); \
407 ret = rbtn_left_get(a_type, a_field, ret); \
409 ret = rbtn_right_get(a_type, a_field, ret); \
413 ret = (NULL); \
918 ret = NULL; \
[all …]
H A Dtcache.h252 void *ret; in tcache_alloc_easy() local
262 return (ret); in tcache_alloc_easy()
269 void *ret; in tcache_alloc_small() local
281 if (ret == NULL) in tcache_alloc_small()
292 memset(ret, 0, usize); in tcache_alloc_small()
299 memset(ret, 0, usize); in tcache_alloc_small()
307 return (ret); in tcache_alloc_small()
314 void *ret; in tcache_alloc_large() local
331 if (ret == NULL) in tcache_alloc_large()
350 memset(ret, 0, usize); in tcache_alloc_large()
[all …]
H A Dutil.h217 size_t ret; in lg_floor() local
222 : "=r"(ret) // Outputs. in lg_floor()
225 return (ret); in lg_floor()
231 unsigned long ret; in lg_floor() local
236 _BitScanReverse64(&ret, x); in lg_floor()
238 _BitScanReverse(&ret, x); in lg_floor()
242 return (ret); in lg_floor()
/redis-3.2.3/deps/jemalloc/test/unit/
H A Drb.c25 int ret; in node_cmp() local
31 if (ret == 0) { in node_cmp()
36 ret = (((uintptr_t)a) > ((uintptr_t)b)) in node_cmp()
39 return (ret); in node_cmp()
74 unsigned ret = 0; in tree_recurse() local
90 return (ret); in tree_recurse()
106 return (ret); in tree_recurse()
197 node_t *ret = tree_next(tree, node); in remove_iterate_cb() local
201 return (ret); in remove_iterate_cb()
208 node_t *ret = tree_prev(tree, node); in remove_reverse_iterate_cb() local
[all …]
/redis-3.2.3/deps/jemalloc/test/src/
H A Dthd.c14 thd_join(thd_t thd, void **ret) in thd_join() argument
17 if (WaitForSingleObject(thd, INFINITE) == WAIT_OBJECT_0 && ret) { in thd_join()
20 *ret = (void *)(uintptr_t)exit_code; in thd_join()
34 thd_join(thd_t thd, void **ret) in thd_join() argument
37 pthread_join(thd, ret); in thd_join()
H A Dtest.c66 test_status_t ret; in p_test() local
81 ret = test_status_pass; in p_test()
85 if (test_status > ret) in p_test()
86 ret = test_status; in p_test()
98 return (ret); in p_test()
/redis-3.2.3/tests/unit/
H A Ddump.tcl87 set ret [r -1 migrate $second_host $second_port key 9 5000]
88 assert {$ret eq {OK}}
108 assert {$ret eq {OK}}
130 assert {$ret eq {OK}}
148 set ret [r -1 migrate $second_host $second_port key 9 5000]
149 assert {$ret eq {OK}}
174 assert {$ret eq {OK}}
195 assert {$ret eq {OK}}
234 assert {$ret eq {OK}}
260 assert {$ret eq {NOKEY}}
[all …]
/redis-3.2.3/deps/hiredis/
H A Dtest.c245 int ret; in test_reply_reader() local
251 ret = redisReaderGetReply(reader,NULL); in test_reply_reader()
252 test_cond(ret == REDIS_ERR && in test_reply_reader()
263 ret = redisReaderGetReply(reader,NULL); in test_reply_reader()
264 test_cond(ret == REDIS_ERR && in test_reply_reader()
275 ret = redisReaderGetReply(reader,NULL); in test_reply_reader()
276 test_cond(ret == REDIS_ERR && in test_reply_reader()
284 ret = redisReaderGetReply(reader,&reply); in test_reply_reader()
292 ret = redisReaderGetReply(reader,&reply); in test_reply_reader()
304 assert(ret == REDIS_ERR); in test_reply_reader()
[all …]
/redis-3.2.3/deps/jemalloc/test/integration/
H A Dmallocx.c6 unsigned ret; in get_nsizes_impl() local
10 assert_d_eq(mallctl(cmd, &ret, &z, NULL, 0), 0, in get_nsizes_impl()
13 return (ret); in get_nsizes_impl()
26 size_t ret; in get_size_impl() local
36 assert_d_eq(mallctlbymib(mib, miblen, &ret, &z, NULL, 0), in get_size_impl()
39 return (ret); in get_size_impl()
/redis-3.2.3/src/
H A Dt_hash.c71 int ret; in hashTypeGetFromZiplist() local
92 serverAssert(ret); in hashTypeGetFromZiplist()
367 int ret; in hashTypeCurrentFromZiplist() local
373 serverAssert(ret); in hashTypeCurrentFromZiplist()
376 serverAssert(ret); in hashTypeCurrentFromZiplist()
441 int ret; in hashTypeConvertZiplist() local
454 if (ret != DICT_OK) { in hashTypeConvertZiplist()
457 serverAssert(ret == DICT_OK); in hashTypeConvertZiplist()
609 int ret; in addHashFieldToReply() local
622 if (ret < 0) { in addHashFieldToReply()
[all …]

12