diff options
author | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2025-03-18 12:30:10 +0000 |
---|---|---|
committer | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2025-03-18 17:14:34 +0000 |
commit | 9f551e28a74941e17ed4572511a2308c03f5a718 (patch) | |
tree | 0a914f21d4b1316f3559a9ca854d0954c521f859 /sysdeps/ieee754/flt-32/e_exp10f.c | |
parent | dd003db8d127b0a8ebabc6a972501a7d881073ea (diff) | |
download | glibc-9f551e28a74941e17ed4572511a2308c03f5a718.zip glibc-9f551e28a74941e17ed4572511a2308c03f5a718.tar.gz glibc-9f551e28a74941e17ed4572511a2308c03f5a718.tar.bz2 |
malloc: Improve arena_for_chunk()
Change heap_max_size() to improve performance of arena_for_chunk().
Instead of a complex calculation, using a simple mask operation to get the
arena base pointer. HEAP_MAX_SIZE should be larger than the huge page size,
otherwise heaps will use not huge pages.
On AArch64 this removes 6 instructions from arena_for_chunk(), and
bench-malloc-thread improves by 1.1% - 1.8%.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/ieee754/flt-32/e_exp10f.c')
0 files changed, 0 insertions, 0 deletions