diff options
-rw-r--r-- | include/jemalloc/internal/arena.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/jemalloc/internal/arena.h b/include/jemalloc/internal/arena.h index 5860195..6f3c77c 100644 --- a/include/jemalloc/internal/arena.h +++ b/include/jemalloc/internal/arena.h @@ -1181,7 +1181,8 @@ arena_dalloc(tsd_t *tsd, void *ptr, tcache_t *tcache) assert(config_cache_oblivious || ((uintptr_t)ptr & PAGE_MASK) == 0); - if (likely(tcache != NULL) && size <= tcache_maxclass) { + if (likely(tcache != NULL) && size - large_pad <= + tcache_maxclass) { tcache_dalloc_large(tsd, tcache, ptr, size - large_pad); } else { |