mirror of https://git.musl-libc.org/git/musl
Browse Source
mremap seems to always fail on nommu, and on some non-Linux implementations of the Linux syscall API, it at least fails to increase allocation size, and may fail to move (i.e. defragment) the existing mapping when shrinking it too. instead of failing realloc or leaving an over-sized allocation that may waste a large amount of memory, fallback to malloc-memcpy-free if mremap fails.master
1 changed files with 2 additions and 1 deletions
Loading…
Reference in new issue