[runtime] Rework named mapping to use an unlinked file to provide correct mapping...
authorRodrigo Kumpera <kumpera@gmail.com>
Thu, 19 Jun 2014 23:08:40 +0000 (19:08 -0400)
committerRodrigo Kumpera <kumpera@gmail.com>
Thu, 19 Jun 2014 23:10:39 +0000 (19:10 -0400)
commit2bf354ca8468536c3a787b3d76193cc7a25736e8
tree382200387c46ea93d9a7881db58523d173e4cb91
parent1d2e26c1eedd0bae67b0dabad8c146e1d33f487f
[runtime] Rework named mapping to use an unlinked file to provide correct mapping semantics.

Instead of using mono_valloc we create a temp file and unlink it. With this we can have the right
mmap semantics regarding CoW and access rights.

This does simplify the code too by completely removing the mapping kind.
mono/metadata/file-mmap-posix.c