[runtime] Map memory used by code managers with MAP_JIT on osx. (#9419)
commita502768b3a24f4251de6a48ba78a27c898968e63
authorZoltan Varga <vargaz@gmail.com>
Sat, 7 Jul 2018 23:48:58 +0000 (7 19:48 -0400)
committerGitHub <noreply@github.com>
Sat, 7 Jul 2018 23:48:58 +0000 (7 19:48 -0400)
tree99d5937840c0afdc05fb1a94ef63ac0f8cf86ef6
parent9ba333126ea2d1a35424b369597bee72e6157366
[runtime] Map memory used by code managers with MAP_JIT on osx. (#9419)

* [runtime] Map memory used by code managers with MAP_JIT on osx.

* [runtime] Use MAP_JIT only on osx mojave and later, it seems to cause crashes on earlier versions.

* [runtime] Add a constant for darwin 18.

* [runtime] Fix the race in get_darwin_version ().

* Fix indentation.
mono/utils/mono-codeman.c
mono/utils/mono-mmap.c
mono/utils/mono-mmap.h