From f2b28906e63bef7518c58236e3e9dde8e4fceb89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20S=C3=A9chet?= Date: Thu, 20 Apr 2023 22:38:28 +0000 Subject: Some nits in cache_bin.h --- include/jemalloc/internal/cache_bin.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/jemalloc/internal/cache_bin.h b/include/jemalloc/internal/cache_bin.h index ee8b1ae2..c9c8f865 100644 --- a/include/jemalloc/internal/cache_bin.h +++ b/include/jemalloc/internal/cache_bin.h @@ -454,9 +454,9 @@ cache_bin_dalloc_easy(cache_bin_t *bin, void *ptr) { return false; } - if (unlikely(cache_bin_dalloc_safety_checks(bin, ptr))) { - return true; - } + if (unlikely(cache_bin_dalloc_safety_checks(bin, ptr))) { + return true; + } bin->stack_head--; *bin->stack_head = ptr; @@ -642,7 +642,7 @@ cache_bin_finish_flush(cache_bin_t *bin, cache_bin_info_t *info, unsigned rem = cache_bin_ncached_get_local(bin, info) - nflushed; memmove(bin->stack_head + nflushed, bin->stack_head, rem * sizeof(void *)); - bin->stack_head = bin->stack_head + nflushed; + bin->stack_head += nflushed; cache_bin_low_water_adjust(bin); } -- cgit v1.2.1