diff options
author | Jason Evans <je@facebook.com> | 2010-04-13 23:06:22 (GMT) |
---|---|---|
committer | Jason Evans <je@facebook.com> | 2010-04-14 04:17:02 (GMT) |
commit | 1bb602125cc6ea471ecc305dd61849ef60349091 (patch) | |
tree | 3f4a4364419e2a6cab4e19a9aa95fef3f4c6273e /jemalloc | |
parent | 552339916925c5432e51ab78864fe63edba9298d (diff) | |
download | jemalloc-1bb602125cc6ea471ecc305dd61849ef60349091.zip jemalloc-1bb602125cc6ea471ecc305dd61849ef60349091.tar.gz jemalloc-1bb602125cc6ea471ecc305dd61849ef60349091.tar.bz2 |
Update stale JEMALLOC_FILL code.
Fix a compilation error due to stale data structure access code in
tcache_dalloc_large() for junk filling.
Diffstat (limited to 'jemalloc')
-rw-r--r-- | jemalloc/include/jemalloc/internal/tcache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jemalloc/include/jemalloc/internal/tcache.h b/jemalloc/include/jemalloc/internal/tcache.h index c76597f..fa6c53f 100644 --- a/jemalloc/include/jemalloc/internal/tcache.h +++ b/jemalloc/include/jemalloc/internal/tcache.h @@ -353,7 +353,7 @@ tcache_dalloc_large(tcache_t *tcache, void *ptr, size_t size) #ifdef JEMALLOC_FILL if (opt_junk) - memset(ptr, 0x5a, bin->reg_size); + memset(ptr, 0x5a, arena->bins[binind].reg_size); #endif tbin = &tcache->tbins[binind]; |