pub(crate) fn trim_heap_after_init()Expand description
Return heap freed during initialization to the OS.
libbpf drops its copy of the BPF object’s sections and its BTF once loading finishes, and the CPU topology and energy model are dropped once the BPF side has been initialized from them. glibc holds those pages until asked.
glibc only: musl has no malloc_trim(), and needs none, since it returns freed memory to the kernel rather than parking it in per-arena free lists.