Skip to content
Commit 5a981ee8 authored by Alex Richardson's avatar Alex Richardson Committed by Alex Richardson
Browse files

shm: Add mmap+memmove fallback if mremap() does not exist



Some operating systems (e.g. FreeBSD) do not implement mremap.
In that case we can grow the mapping by trying to map adjacent memory.
If that fails we can fall back to creating a new larger mapping and
moving the old memory contents there.

Co-authored-by: default avatarKoop Mast <kwm@rainbow-runner.nl>
Signed-off-by: default avatarAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
parent 54b237a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment