diff options
author | Jason Evans <je@fb.com> | 2011-03-14 18:39:49 (GMT) |
---|---|---|
committer | Jason Evans <je@fb.com> | 2011-03-14 18:43:54 (GMT) |
commit | a7153a0d7d5f1c81edf4a8087353cc095819b78c (patch) | |
tree | 95624ee7b03f545987ceb7da236b56c1cbf2c8ed /jemalloc/src | |
parent | 814b9bda7f17cbedac9969e3526736e85c5f2077 (diff) | |
download | jemalloc-a7153a0d7d5f1c81edf4a8087353cc095819b78c.zip jemalloc-a7153a0d7d5f1c81edf4a8087353cc095819b78c.tar.gz jemalloc-a7153a0d7d5f1c81edf4a8087353cc095819b78c.tar.bz2 |
Fix a "thread.arena" mallctl bug.
Fix a variable reversal bug in mallctl("thread.arena", ...).
Diffstat (limited to 'jemalloc/src')
-rw-r--r-- | jemalloc/src/ctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jemalloc/src/ctl.c b/jemalloc/src/ctl.c index c37b4e7..1b28da4 100644 --- a/jemalloc/src/ctl.c +++ b/jemalloc/src/ctl.c @@ -1114,8 +1114,8 @@ thread_arena_ctl(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp, unsigned newind, oldind; newind = oldind = choose_arena()->ind; - WRITE(oldind, unsigned); - READ(newind, unsigned); + WRITE(newind, unsigned); + READ(oldind, unsigned); if (newind != oldind) { arena_t *arena; |