diff options
author | Jason Evans <jasone@canonware.com> | 2015-02-10 17:03:48 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2015-02-10 17:03:48 (GMT) |
commit | 9e561e8d3f3c625b98b57df069eeac0fa2f522fb (patch) | |
tree | 2d4cb64f9e6225daa145a6cc0ecd8e748c97f7db /src | |
parent | 1cb181ed632e7573fb4eab194e4d216867222d27 (diff) | |
download | jemalloc-9e561e8d3f3c625b98b57df069eeac0fa2f522fb.zip jemalloc-9e561e8d3f3c625b98b57df069eeac0fa2f522fb.tar.gz jemalloc-9e561e8d3f3c625b98b57df069eeac0fa2f522fb.tar.bz2 |
Test and fix tcache ID recycling.
Diffstat (limited to 'src')
-rw-r--r-- | src/tcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tcache.c b/src/tcache.c index c7d4f78..9fe78c3 100644 --- a/src/tcache.c +++ b/src/tcache.c @@ -451,7 +451,7 @@ tcaches_create(tsd_t *tsd, unsigned *r_ind) elm = tcaches_avail; tcaches_avail = tcaches_avail->next; elm->tcache = tcache; - *r_ind = (elm - tcaches) / sizeof(tcaches_t); + *r_ind = elm - tcaches; } else { elm = &tcaches[tcaches_past]; elm->tcache = tcache; |