Searched refs:unlikely (Results 1 – 16 of 16) sorted by relevance
346 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 …]
60 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 …]
2182 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 …]
152 if (config_fill && unlikely(opt_junk_free)) { in quarantine()
307 if (unlikely(arena == NULL)) in tcache_get_hard()
245 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 …]
17 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)) \
71 # define unlikely(x) __builtin_expect(!!(x), 0) macro80 # define unlikely(x) !!(x) macro90 if (unlikely(config_debug && !(e))) { \123 if (unlikely(config_debug && !(e))) \130 if (unlikely(!(c))) \
384 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()
134 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()
317 if (unlikely(wrapper == NULL)) { \436 if (unlikely(wrapper == NULL)) { \616 if (unlikely(tsd->state != tsd_state_nominal)) { in tsd_fetch()
542 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))
1110 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()
86 #define unlikely(x) __builtin_expect(!!(x), 0) macro89 #define unlikely(x) (x) macro422 if (unlikely(!node)) in _quicklistNodeAllowInsert()
94 unlikely to write a lot of text, otherwise multi line editing, where multiple
382 corruption if allocating via sbrk(2) (unlikely unless running with the384 unless using mlockall(2) (and unlikely even then, unless the395 array (very unlikely) resulted in memory corruption.