Skip to content

v130.0.6723.40-3

Pre-release
Pre-release
Compare
Choose a tag to compare
@klzgrad klzgrad released this 19 Oct 04:04
· 2 commits to master since this release

Fixed a memory leak in PartitionAlloc when madvise is not available #664. It turns out when the kernel is configured without CONFIG_ADVISE_SYSCALLS in some older embedded distros, even if crashes are avoided by skipping the madvise syscall, memory is still not returned to the kernel by PartitionAlloc due to design assumption of the availability of madvise. Thus PartitionAlloc is fundamentally incompatible with kernels without CONFIG_ADVISE_SYSCALLS.

This fix disables PartitionAlloc, avoids memory leaks, and makes memory performance worse for all static builds.