summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}