mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 17:17:19 +03:00
Cache bin: expose ncached_max publicly.
This commit is contained in:
parent
634afc4124
commit
b58dea8d1b
2 changed files with 11 additions and 0 deletions
|
|
@ -6,6 +6,7 @@
|
|||
void
|
||||
cache_bin_info_init(cache_bin_info_t *info,
|
||||
cache_bin_sz_t ncached_max) {
|
||||
assert(ncached_max <= CACHE_BIN_NCACHED_MAX);
|
||||
size_t stack_size = (size_t)ncached_max * sizeof(void *);
|
||||
assert(stack_size < ((size_t)1 << (sizeof(cache_bin_sz_t) * 8)));
|
||||
info->ncached_max = (cache_bin_sz_t)ncached_max;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue