commit | a7153a0d7d5f1c81edf4a8087353cc095819b78c | [log] [tgz] |
---|---|---|
author | Jason Evans <je@fb.com> | Mon Mar 14 11:39:49 2011 -0700 |
committer | Jason Evans <je@fb.com> | Mon Mar 14 11:43:54 2011 -0700 |
tree | 95624ee7b03f545987ceb7da236b56c1cbf2c8ed | |
parent | 814b9bda7f17cbedac9969e3526736e85c5f2077 [diff] [blame] |
Fix a "thread.arena" mallctl bug. Fix a variable reversal bug in mallctl("thread.arena", ...).
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 @@ 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;