Some nits in cache_bin.h
This commit is contained in:
parent
fc680128e0
commit
f2b28906e6
@ -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…
Reference in New Issue
Block a user