Solaris/x86[_64]: gctest fails if PROC_VDB.
-Cygwin: crashes with USE_MUNMAP: mmap(PROT_NONE) failed.
-
Cygwin: autoreconf fails: possibly undefined macro: AC_MSG_ERROR, AS_IF
at configure.ac:59 and configure.ac:694, respectively (autoreconf-2.68).
if test "${enable_munmap}" != ""; then
AC_DEFINE([USE_MMAP], 1,
[Define to use mmap instead of sbrk to expand the heap.])
+ case "$host" in
+ *-*-cygwin*)
+ # Workaround for Cygwin: use VirtualAlloc since mmap(PROT_NONE) fails
+ AC_DEFINE([USE_WINALLOC], 1,
+ [Define to use Win32 VirtualAlloc (instead of sbrk or \
+ mmap) to expand the heap.])
+ ;;
+ esac
AC_DEFINE([USE_MUNMAP], 1,
[Define to return memory to OS with munmap calls
(see doc/README.macros).])
configure (this will instruct make compile with -D GC_DLL).
Parallel marker could be enabled via "--enable-parallel-mark".
-
-Memory unmapping could be enabled via "--enable-munmap" (not well supported
-on Cygwin currently).
+Memory unmapping could be enabled via "--enable-munmap".
Borland Tools
-------------