"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mono/utils/mono-mmap.c" between
mono-6.12.0.107.tar.xz and mono-6.12.0.122.tar.xz

About: Mono is an open source implementation of Microsoft's .NET Framework based on the ECMA standards for C# and the Common Language Runtime.

mono-mmap.c  (mono-6.12.0.107.tar.xz):mono-mmap.c  (mono-6.12.0.122.tar.xz)
skipping to change at line 290 skipping to change at line 290
if (flags & MONO_MMAP_32BIT) if (flags & MONO_MMAP_32BIT)
mflags |= MAP_32BIT; mflags |= MAP_32BIT;
#endif #endif
#ifdef HOST_WASM #ifdef HOST_WASM
if (length == 0) if (length == 0)
/* emscripten throws an exception on 0 length */ /* emscripten throws an exception on 0 length */
return NULL; return NULL;
#endif #endif
#if defined(__APPLE__) && defined(MAP_JIT) #if defined(__APPLE__) && defined(MAP_JIT) && defined(TARGET_OSX)
if (get_darwin_version () >= DARWIN_VERSION_MOJAVE) { if (get_darwin_version () >= DARWIN_VERSION_MOJAVE) {
/* Check for hardened runtime */ /* Check for hardened runtime */
static int is_hardened_runtime; static int is_hardened_runtime;
if (is_hardened_runtime == 0 && !use_mmap_jit) { if (is_hardened_runtime == 0 && !use_mmap_jit) {
ptr = mmap (NULL, getpagesize (), PROT_WRITE|PROT_EXEC, M AP_PRIVATE|MAP_ANONYMOUS, -1, 0); ptr = mmap (NULL, getpagesize (), PROT_WRITE|PROT_EXEC, M AP_PRIVATE|MAP_ANONYMOUS, -1, 0);
if (ptr == MAP_FAILED) { if (ptr == MAP_FAILED) {
is_hardened_runtime = 1; is_hardened_runtime = 1;
} else { } else {
is_hardened_runtime = 2; is_hardened_runtime = 2;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)