Fix unlikely condition in arena_prof_info_get()

This commit is contained in:
Yinan Zhang 2019-12-24 11:30:23 -08:00
parent 3fa142cf39
commit e98ddf7987

View File

@ -49,7 +49,7 @@ arena_prof_info_get(tsd_t *tsd, const void *ptr, alloc_ctx_t *alloc_ctx,
if (alloc_ctx == NULL) {
edata = iealloc(tsd_tsdn(tsd), ptr);
is_slab = edata_slab_get(edata);
} else if (!unlikely(is_slab = alloc_ctx->slab)) {
} else if (unlikely(!(is_slab = alloc_ctx->slab))) {
edata = iealloc(tsd_tsdn(tsd), ptr);
}