diff options
| author | Danish Khateeb <danishkhateeb03@gmail.com> | 2026-09-26 10:24:13 -0500 |
|---|---|---|
| committer | Thomas Weißschuh <linux@weissschuh.net> | 2026-09-30 21:27:03 +0200 |
| commit | b7db3ba9434cbad3d15f62500104525bfa28a304 (patch) | |
| tree | bfc85b1001f6af364eb339ba99f8e6c785ae3b45 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | da27722051fdf0775d8c5b3e33dc21bcf605dbd4 (diff) | |
| download | linux-next-b7db3ba9434cbad3d15f62500104525bfa28a304.tar.gz linux-next-b7db3ba9434cbad3d15f62500104525bfa28a304.zip | |
tools/nolibc: stop rounding malloc() sizes up to 4096 bytes
malloc() rounds the size of each mapping up to a multiple of 4096,
presumably to align it to a page boundary. But the page size is not 4096
on all architectures, and mmap() and munmap() round the length up to the
page size themselves.
Drop the rounding. As heap->len is no longer rounded up, growing a block
with realloc() now always creates a new mapping.
Assisted-by: LLM
Signed-off-by: Danish Khateeb <danishkhateeb03@gmail.com>
Reviewed-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260926152414.251214-2-danishkhateeb03@gmail.com
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
