mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-25 08:33:38 +03:00
Some nits in cache_bin.h
This commit is contained in:
parent
fc680128e0
commit
f2b28906e6
1 changed files with 4 additions and 4 deletions
|
|
@ -454,9 +454,9 @@ cache_bin_dalloc_easy(cache_bin_t *bin, void *ptr) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (unlikely(cache_bin_dalloc_safety_checks(bin, ptr))) {
|
if (unlikely(cache_bin_dalloc_safety_checks(bin, ptr))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bin->stack_head--;
|
bin->stack_head--;
|
||||||
*bin->stack_head = ptr;
|
*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;
|
unsigned rem = cache_bin_ncached_get_local(bin, info) - nflushed;
|
||||||
memmove(bin->stack_head + nflushed, bin->stack_head,
|
memmove(bin->stack_head + nflushed, bin->stack_head,
|
||||||
rem * sizeof(void *));
|
rem * sizeof(void *));
|
||||||
bin->stack_head = bin->stack_head + nflushed;
|
bin->stack_head += nflushed;
|
||||||
cache_bin_low_water_adjust(bin);
|
cache_bin_low_water_adjust(bin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue