Skip to content

Commit

Permalink
corected Redis add-on to jemalloc (iget_defrag_hint)
Browse files Browse the repository at this point in the history
  • Loading branch information
tporadowski committed Nov 4, 2020
1 parent 1e7ca90 commit 380e7df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ iget_defrag_hint(tsdn_t *tsdn, void* ptr, int *bin_util, int *run_util) {
extent_t *slab = iealloc(tsdn, ptr);
arena_t *arena = extent_arena_get(slab);
szind_t binind = extent_szind_get(slab);
bin_t *bin = &arena->bins[binind];
bin_t *bin = arena->bins[binind].bin_shards;
malloc_mutex_lock(tsdn, &bin->lock);
/* don't bother moving allocations from the slab currently used for new allocations */
if (slab != bin->slabcur) {
Expand Down

0 comments on commit 380e7df

Please sign in to comment.