Conditionalize an isalloc() call in rallocm().

Conditionalize an isalloc() call in rallocm() that be unnecessary.
This commit is contained in:
Jason Evans 2011-08-12 11:28:47 -07:00
parent 183ba50c19
commit b493ce22a4

View File

@ -1681,11 +1681,11 @@ JEMALLOC_P(rallocm)(void **ptr, size_t *rsize, size_t size, size_t extra,
alignment, zero, no_move);
if (q == NULL)
goto ERR;
usize = isalloc(q);
if (max_usize < PAGE_SIZE) {
usize = max_usize;
arena_prof_promoted(q, usize);
}
} else
usize = isalloc(q);
} else {
q = iralloc(p, size, extra, alignment, zero, no_move);
if (q == NULL)