aboutsummaryrefslogtreecommitdiff
path: root/malloc/alloc_buffer_alloc_array.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-12-08 16:32:56 +0000
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-12-09 11:30:55 +0000
commitdc23cc80210799f8d8ab5b1ea2e00341e613a1a7 (patch)
treea29d4ff6adcafc6869e8e3e89e24059378b47999 /malloc/alloc_buffer_alloc_array.c
parentda7a5b5f4df247726806ec7c5ce57d6bf4290a01 (diff)
downloadglibc-dc23cc80210799f8d8ab5b1ea2e00341e613a1a7.tar.xz
glibc-dc23cc80210799f8d8ab5b1ea2e00341e613a1a7.zip
cheri: malloc: Set fixed mmap_threshold for capability narrowing
Capability narrowing requires extra alignment for large allocations, this can cause significant heap fragmentation so ensure large allocations use a single mmap and unmaped on free. The fragmentation is bug 14581. This patch disables dynamic mmap threshold when cap_narrowing is enabled and uses a threshold of 256 kbytes on morello (which means at most 64 byte alignment requirement on the heap). The dynamic threshold could quickly grow very big and stay there making the fragmentation issue common.
Diffstat (limited to 'malloc/alloc_buffer_alloc_array.c')
0 files changed, 0 insertions, 0 deletions