mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-06 13:57:17 +03:00
Cache bin: Write the unit test in terms of the API
I.e. stop allowing the unit test to have secret access to implementation internals.
This commit is contained in:
parent
7f5ebd211c
commit
370c1ea007
2 changed files with 191 additions and 50 deletions
|
|
@ -169,6 +169,10 @@ cache_bin_low_water_set(cache_bin_t *bin) {
|
|||
bin->low_water_position = bin->cur_ptr.lowbits;
|
||||
}
|
||||
|
||||
/*
|
||||
* This is an internal implementation detail -- users should only affect ncached
|
||||
* via single-item pushes or batch fills.
|
||||
*/
|
||||
static inline void
|
||||
cache_bin_ncached_set(cache_bin_t *bin, cache_bin_info_t *info,
|
||||
cache_bin_sz_t n) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue