From 1bb602125cc6ea471ecc305dd61849ef60349091 Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Tue, 13 Apr 2010 16:06:22 -0700 Subject: [PATCH] Update stale JEMALLOC_FILL code. Fix a compilation error due to stale data structure access code in tcache_dalloc_large() for junk filling. --- jemalloc/include/jemalloc/internal/tcache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jemalloc/include/jemalloc/internal/tcache.h b/jemalloc/include/jemalloc/internal/tcache.h index c76597fa..fa6c53f2 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];