mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-22 04:03:11 +00:00
Fix unlikely condition in arena_prof_info_get()
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user