Do not disable SEC by default for 64k pages platforms
Default SEC max_alloc option value was 32k, disabling SEC for platforms with lg-page=16. This change enables SEC for all platforms, making minimum max_alloc value equal to PAGE.
This commit is contained in:
committed by
Alexander Lapenkov
parent
eaaa368bab
commit
a93931537e
@@ -23,7 +23,7 @@ sec_bin_init(sec_bin_t *bin) {
|
||||
bool
|
||||
sec_init(tsdn_t *tsdn, sec_t *sec, base_t *base, pai_t *fallback,
|
||||
const sec_opts_t *opts) {
|
||||
assert(opts->max_alloc > 0);
|
||||
assert(opts->max_alloc >= PAGE);
|
||||
|
||||
size_t max_alloc = PAGE_FLOOR(opts->max_alloc);
|
||||
pszind_t npsizes = sz_psz2ind(max_alloc) + 1;
|
||||
|
Reference in New Issue
Block a user