Cleanup cache_bin_info_t* info input args

This commit is contained in:
Shirui Cheng
2023-10-24 13:51:14 -07:00
committed by Qi Wang
parent 3025b021b9
commit e4817c8d89
8 changed files with 175 additions and 207 deletions

View File

@@ -81,8 +81,7 @@ tcache_bytes_read_local(void) {
if (tcache_bin_disabled(i, cache_bin, tcache->tcache_slow)) {
continue;
}
cache_bin_sz_t ncached = cache_bin_ncached_get_local(cache_bin,
&cache_bin->bin_info);
cache_bin_sz_t ncached = cache_bin_ncached_get_local(cache_bin);
tcache_bytes += ncached * sz_index2size(i);
}
return tcache_bytes;
@@ -370,4 +369,3 @@ main(void) {
test_tcache_max,
test_thread_tcache_max);
}