mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-25 08:33:38 +03:00
Change stack_size assertion back to the more compatabile one.
This commit is contained in:
parent
756d4df2fd
commit
e2cd27132a
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ cache_bin_info_init(cache_bin_info_t *info,
|
||||||
cache_bin_sz_t ncached_max) {
|
cache_bin_sz_t ncached_max) {
|
||||||
assert(ncached_max <= CACHE_BIN_NCACHED_MAX);
|
assert(ncached_max <= CACHE_BIN_NCACHED_MAX);
|
||||||
size_t stack_size = (size_t)ncached_max * sizeof(void *);
|
size_t stack_size = (size_t)ncached_max * sizeof(void *);
|
||||||
assert(stack_size <= UINT16_MAX);
|
assert(stack_size < ((size_t)1 << (sizeof(cache_bin_sz_t) * 8)));
|
||||||
info->ncached_max = (cache_bin_sz_t)ncached_max;
|
info->ncached_max = (cache_bin_sz_t)ncached_max;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue