Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
48 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters