v130.0.6723.40-3
Pre-release
Pre-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.