mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Fix unlikely condition in arena_prof_info_get()
This commit is contained in:
parent
3fa142cf39
commit
e98ddf7987
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue