]> granicus.if.org Git - gc/commit
Fix executable memory allocation in GC_unix_get_mem
authorIvan Maidanski <ivmai@mail.ru>
Thu, 20 Dec 2018 08:12:06 +0000 (11:12 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 20 Dec 2018 08:12:06 +0000 (11:12 +0300)
commit776bec4006a99d5e9b1a233e1c7352e0609bf360
treec928f250579f7dcbd9a4336418c64316d75b9eb2
parentc8377cb9ce170728f1232c5d9f54b890bc18373c
Fix executable memory allocation in GC_unix_get_mem

Previously, sbrk() was used for the memory allocation even if the
executable pages were requested.

* os_dep.c [!OS2 && !PCR && !AMIGA && !USE_WINALLOC && !MACOS
&& !DOS4GW && !NONSTOP && !SN_TARGET_PSP2 && !RTEMS && !__CC_ARM
&& MMAP_SUPPORTED] (GC_unix_get_mem): Do not call GC_unix_sbrk_get_mem
if GC_pages_executable; add comment.
os_dep.c