]> granicus.if.org Git - gc/commit
Abort with appropriate message if executable pages cannot be allocated
authorIvan Maidanski <ivmai@mail.ru>
Thu, 20 Dec 2018 23:33:49 +0000 (02:33 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 20 Dec 2018 23:33:49 +0000 (02:33 +0300)
commit1c62b365b088c409c7ee3546783194c8fdbef31b
treebef7797a3ad9ede351daf1b56cef8e6a58442dbd
parentf70a2fe9058f655bb75759f7b9ec534fa27ca949
Abort with appropriate message if executable pages cannot be allocated

This may happen e.g. if PaX MPROTECT feature is enabled.

* os_dep.c [!OS2 && !PCR && !AMIGA && !USE_WINALLOC && !MACOS
&& !DOS4GW && !NONSTOP && !SN_TARGET_PSP2 && !RTEMS && !__CC_ARM
&& MMAP_SUPPORTED] (GC_unix_mmap_get_mem): Treat result==MAP_FAILED as
unlikely; if the first mmap call returns MAP_FAILED then ABORT with the
appropriate message if GC_pages_executable (and errno is EACCES).
os_dep.c