diff options
author | Jason Evans <je@fb.com> | 2011-08-12 18:28:47 (GMT) |
---|---|---|
committer | Jason Evans <je@fb.com> | 2011-08-12 18:28:47 (GMT) |
commit | b493ce22a4b545c17d5942d0fc65f413dd97743a (patch) | |
tree | a6fff2a4a89e7891bee603c2c629a95f8bc094aa | |
parent | 183ba50c1940a95080f6cf890ae4ae40200301e7 (diff) | |
download | jemalloc-b493ce22a4b545c17d5942d0fc65f413dd97743a.zip jemalloc-b493ce22a4b545c17d5942d0fc65f413dd97743a.tar.gz jemalloc-b493ce22a4b545c17d5942d0fc65f413dd97743a.tar.bz2 |
Conditionalize an isalloc() call in rallocm().
Conditionalize an isalloc() call in rallocm() that be unnecessary.
-rw-r--r-- | src/jemalloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jemalloc.c b/src/jemalloc.c index afba0e1..4d10e90 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c @@ -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) |