Mathis Beer default_357-line@yahoo.de writes:
As such, this patch changes msync to be called asynchronously.
This is revision three of this patch. It leaves the original #define MS_SYNC 0 in place and instead changes NtFlushVirtualMemory to use MS_ASYNC only if mman.h was found earlier. (It also adds comments)
That doesn't make sense, all interesting platforms have mman.h, that doesn't imply they have MS_ASYNC.
It may well be that nowadays they all have MS_ASYNC too, so we could use it unconditionally and see if someone reports breakage. This will have to wait until after code freeze though.