]> granicus.if.org Git - gc/commit
Use mprotect instead of mmap in GC_unmap() on Cygwin
authorErik M. Bray <erik.bray@lri.fr>
Tue, 17 Oct 2017 08:50:03 +0000 (11:50 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 25 Oct 2017 10:48:22 +0000 (13:48 +0300)
commitbe148f4141ab5d6812928a7bceeb2617384e7fe7
tree573010e1b4958ddfba5c33082f907acd6885778e
parentd2ecda7cd758ef43a569104bc2874918575af2ca
Use mprotect instead of mmap in GC_unmap() on Cygwin

Issue #187 (BDWGC).

* configure.ac [$enable_munmap!="" && $enable_munmap!=no]
(USE_WINALLOC): Replace AC_DEFINE with AH_TEMPLATE; remove comment
about a workaround for Cygwin; remove "if $host=*-*-cygwin*".
* os_dep.c [CYGWIN32 && USE_MUNMAP] (GC_setpagesize): Set GC_page_size
to dwAllocationGranularity (instead of dwPageSize); add comment; add
assertion that dwAllocationGranularity is not less than dwPageSize.
* os_dep.c [USE_MUNMAP && CYGWIN32 && !USE_WINALLOC] (GC_unmap,
GC_unmap_gap): Call mprotect() instead of mmap(); add comment.
configure.ac
os_dep.c