You can literally do everything with mmap that you can do with shm, without hitting OS caps, no performance penalty and with a code that's simpler.
I imagine on macos you'd have to use the mach APIs if you're avoiding shm.
I imagine on macos you'd have to use the mach APIs if you're avoiding shm.