summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmaury Séchet <deadalnix@gmail.com>2023-04-20 22:38:28 +0000
committerQi Wang <interwq@gmail.com>2023-05-01 10:21:17 -0700
commitf2b28906e63bef7518c58236e3e9dde8e4fceb89 (patch)
tree50732250c18a738c26b4c9f6f0302bb243b137c9
parentfc680128e0aed18d878bdc71c1ceb53e79da3de7 (diff)
downloadjemalloc-f2b28906e63bef7518c58236e3e9dde8e4fceb89.tar.gz
Some nits in cache_bin.h
-rw-r--r--include/jemalloc/internal/cache_bin.h8
1 files 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);
}