summaryrefslogtreecommitdiff
path: root/jemalloc/src/ctl.c
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2011-03-14 16:42:26 -0700
committerJason Evans <je@fb.com>2011-03-14 16:42:26 -0700
commitad11ee6a3416e8d234c35670f20687d17545c09f (patch)
tree40ca578d2c0e1597d17caf0ca7ea6a552d64e1da /jemalloc/src/ctl.c
parente27d134efc8609e3f95e4ec13f605ddcb5eb6ca6 (diff)
parent0e4d0d13f9beb8857bb377f41b4fbd327d3a0cbd (diff)
downloadjemalloc-2.1.3.tar.gz
Merge branch 'dev'2.1.3
Diffstat (limited to 'jemalloc/src/ctl.c')
-rw-r--r--jemalloc/src/ctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/jemalloc/src/ctl.c b/jemalloc/src/ctl.c
index c37b4e75..1b28da47 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;