diff options
author | Jason Evans <je@fb.com> | 2013-11-26 02:02:35 (GMT) |
---|---|---|
committer | Jason Evans <je@fb.com> | 2013-11-26 02:02:35 (GMT) |
commit | 39e7fd0580a140912fa1170de7a7699c86afe45d (patch) | |
tree | e4ff0cdc52c923bdfeb242ab28db0aa98b24165e /src/jemalloc.c | |
parent | d6df91438a1cf25ea248c3897da463c51709c580 (diff) | |
download | jemalloc-39e7fd0580a140912fa1170de7a7699c86afe45d.zip jemalloc-39e7fd0580a140912fa1170de7a7699c86afe45d.tar.gz jemalloc-39e7fd0580a140912fa1170de7a7699c86afe45d.tar.bz2 |
Fix ALLOCM_ARENA(a) handling in rallocm().
Fix rallocm() to use the specified arena for allocation, not just
deallocation.
Clarify ALLOCM_ARENA(a) documentation.
Diffstat (limited to 'src/jemalloc.c')
-rw-r--r-- | src/jemalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jemalloc.c b/src/jemalloc.c index 972f454..491ec32 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c @@ -1530,7 +1530,7 @@ je_rallocm(void **ptr, size_t *rsize, size_t size, size_t extra, int flags) if (arena_ind != UINT_MAX) { arena_chunk_t *chunk; - try_tcache_alloc = true; + try_tcache_alloc = false; chunk = (arena_chunk_t *)CHUNK_ADDR2BASE(*ptr); try_tcache_dalloc = (chunk == *ptr || chunk->arena != arenas[arena_ind]); |