Conditionalize an isalloc() call in rallocm().
Conditionalize an isalloc() call in rallocm() that be unnecessary.
This commit is contained in:
parent
183ba50c19
commit
b493ce22a4
@ -1681,11 +1681,11 @@ JEMALLOC_P(rallocm)(void **ptr, size_t *rsize, size_t size, size_t extra,
|
|||||||
alignment, zero, no_move);
|
alignment, zero, no_move);
|
||||||
if (q == NULL)
|
if (q == NULL)
|
||||||
goto ERR;
|
goto ERR;
|
||||||
usize = isalloc(q);
|
|
||||||
if (max_usize < PAGE_SIZE) {
|
if (max_usize < PAGE_SIZE) {
|
||||||
usize = max_usize;
|
usize = max_usize;
|
||||||
arena_prof_promoted(q, usize);
|
arena_prof_promoted(q, usize);
|
||||||
}
|
} else
|
||||||
|
usize = isalloc(q);
|
||||||
} else {
|
} else {
|
||||||
q = iralloc(p, size, extra, alignment, zero, no_move);
|
q = iralloc(p, size, extra, alignment, zero, no_move);
|
||||||
if (q == NULL)
|
if (q == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user