Home
last modified time | relevance | path

Searched refs:unlikely (Results 1 – 16 of 16) sorted by relevance

/redis-3.2.3/deps/jemalloc/src/
H A Djemalloc.c346 if (unlikely(size == 0)) in bootstrap_malloc()
370 if (unlikely(ptr == NULL)) in bootstrap_free()
1386 if (unlikely(p == NULL)) { in imalloc_prof()
1476 if (unlikely(p == NULL)) { in imemalign_prof()
1607 if (unlikely(p == NULL)) { in icalloc_prof()
1717 if (unlikely(p == NULL)) { in irealloc_prof()
1778 if (unlikely(size == 0)) { in je_realloc()
1971 if (unlikely(zero)) in imallocx_flags()
2069 if (unlikely(p == NULL)) in JEMALLOC_ATTR()
2198 if (unlikely(p == NULL)) in je_rallocx()
[all …]
H A Dhuge.c60 if (unlikely(usize == 0)) in huge_palloc()
76 if (unlikely(arena == NULL) || (ret = arena_chunk_alloc_huge(arena, in huge_palloc()
96 if (zero || (config_fill && unlikely(opt_zero))) { in huge_palloc()
99 } else if (config_fill && unlikely(opt_junk_alloc)) in huge_palloc()
113 if (config_fill && have_dss && unlikely(opt_junk_free)) { in huge_dalloc_junk()
153 if (config_fill && unlikely(opt_junk_free)) { in huge_ralloc_no_move_similar()
175 if (zero || (config_fill && unlikely(opt_zero))) { in huge_ralloc_no_move_similar()
180 } else if (config_fill && unlikely(opt_junk_alloc)) { in huge_ralloc_no_move_similar()
211 if (config_fill && unlikely(opt_junk_free)) { in huge_ralloc_no_move_shrink()
264 if (zero || (config_fill && unlikely(opt_zero))) { in huge_ralloc_no_move_expand()
[all …]
H A Darena.c2182 if (unlikely(opt_junk_alloc)) { in arena_malloc_small()
2185 } else if (unlikely(opt_zero)) in arena_malloc_small()
2254 if (unlikely(opt_junk_alloc)) in arena_malloc_large()
2256 else if (unlikely(opt_zero)) in arena_malloc_large()
2279 if (unlikely(arena == NULL)) in arena_palloc_large()
2342 if (unlikely(opt_junk_alloc)) in arena_palloc_large()
2344 else if (unlikely(opt_zero)) in arena_palloc_large()
2553 if (config_fill && unlikely(opt_junk_free)) in arena_dalloc_junk_large()
2780 if (unlikely(opt_junk_alloc)) { in arena_ralloc_large()
2783 } else if (unlikely(opt_zero)) { in arena_ralloc_large()
[all …]
H A Dquarantine.c152 if (config_fill && unlikely(opt_junk_free)) { in quarantine()
H A Dtcache.c307 if (unlikely(arena == NULL)) in tcache_get_hard()
/redis-3.2.3/deps/jemalloc/include/jemalloc/internal/
H A Dtcache.h245 if (unlikely(tcache->ev_cnt == TCACHE_GC_INCR)) in tcache_event()
254 if (unlikely(tbin->ncached == 0)) { in tcache_alloc_easy()
279 if (unlikely(ret == NULL)) { in tcache_alloc_small()
288 if (unlikely(opt_junk_alloc)) { in tcache_alloc_small()
291 } else if (unlikely(opt_zero)) in tcache_alloc_small()
325 if (unlikely(ret == NULL)) { in tcache_alloc_large()
344 if (unlikely(opt_junk_alloc)) in tcache_alloc_large()
346 else if (unlikely(opt_zero)) in tcache_alloc_large()
370 if (config_fill && unlikely(opt_junk_free)) in tcache_dalloc_small()
399 if (config_fill && unlikely(opt_junk_free)) in tcache_dalloc_large()
[all …]
H A Dvalgrind.h17 if (unlikely(in_valgrind)) \
21 if (unlikely(in_valgrind)) \
25 if (unlikely(in_valgrind)) \
34 if (unlikely(in_valgrind && cond)) \
40 if (unlikely(in_valgrind)) { \
76 if (unlikely(in_valgrind)) \
H A Dutil.h71 # define unlikely(x) __builtin_expect(!!(x), 0) macro
80 # define unlikely(x) !!(x) macro
90 if (unlikely(config_debug && !(e))) { \
123 if (unlikely(config_debug && !(e))) \
130 if (unlikely(!(c))) \
H A Dprof.h384 if (unlikely(tdata == NULL)) { in prof_tdata_get()
389 } else if (unlikely(tdata->expired)) { in prof_tdata_get()
489 if (unlikely((uintptr_t)tctx > (uintptr_t)1U)) in prof_malloc()
522 if (unlikely(sampled)) in prof_realloc()
527 if (unlikely(old_sampled)) in prof_realloc()
539 if (unlikely((uintptr_t)tctx > (uintptr_t)1U)) in prof_free()
H A Drtree.h134 if (unlikely(key == 0)) in rtree_start_level()
177 if (unlikely(!rtree_node_valid(child))) in rtree_child_read()
229 if (unlikely(!rtree_node_valid(subtree))) in rtree_subtree_read()
245 if (!dependent && unlikely(!rtree_node_valid(node))) in rtree_get()
H A Dtsd.h317 if (unlikely(wrapper == NULL)) { \
436 if (unlikely(wrapper == NULL)) { \
616 if (unlikely(tsd->state != tsd_state_nominal)) { in tsd_fetch()
H A Djemalloc_internal.h.in542 size_t x = unlikely(ZI(size) < 0) ? ((size<<1) ?
640 size_t x = unlikely(ZI(size) < 0) ? ((size<<1) ?
769 if (unlikely((ret = tsd_arena_get(tsd)) == NULL))
785 if (unlikely(arenas_cache == NULL)) {
789 if (unlikely(ind >= tsd_narenas_cache_get(tsd))) {
1026 if (config_fill && unlikely(opt_quarantine))
1043 if (config_fill && unlikely(opt_quarantine))
H A Darena.h1110 if (unlikely(usize > SMALL_MAXCLASS || (uintptr_t)tctx > in arena_prof_tctx_set()
1139 if (unlikely(usize > SMALL_MAXCLASS || (ptr == old_ptr && in arena_prof_tctx_reset()
1168 if (unlikely(arena == NULL)) in arena_malloc()
1219 if (unlikely(binind == BININD_INVALID || (config_prof && !demote in arena_salloc()
/redis-3.2.3/src/
H A Dquicklist.c86 #define unlikely(x) __builtin_expect(!!(x), 0) macro
89 #define unlikely(x) (x) macro
422 if (unlikely(!node)) in _quicklistNodeAllowInsert()
/redis-3.2.3/deps/linenoise/
H A DREADME.markdown94 unlikely to write a lot of text, otherwise multi line editing, where multiple
/redis-3.2.3/deps/jemalloc/
H A DChangeLog382 corruption if allocating via sbrk(2) (unlikely unless running with the
384 unless using mlockall(2) (and unlikely even then, unless the
395 array (very unlikely) resulted in memory corruption.