Closed matthieupeeters closed 3 years ago
The call to mremap is necessary in order to extend memory mapped files when space is low. It is possible to do the same thing by calling munmap / mmap, but you would probably need additional locks to ensure that bad things didn't happen to threads that were in the middle of writing to the mapped file. Otherwise, there may be other incompatibilities with OSX; no efforts have been made to date to support it. If you would like to contribute a patch, please feel free!
So far this seems to be the only incompatibility with OSX. I made a workaround without taking the locks into consideration, but that is not patch-worthy.
I came to this project while investigating RDF storage data structures.
Hi @matthieupeeters, can you share your patch ? It can be useful just for dev environment
On mmap.lisp(151) there is a call to a function osicat-posix:mremap. This seems to be unavailable on Darwin. Is there a way to support MacOS in this regard?