]> granicus.if.org Git - gc/commit
Allow incremental GC on Cygwin
authorIvan Maidanski <ivmai@mail.ru>
Tue, 2 Apr 2019 22:00:57 +0000 (01:00 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 2 Apr 2019 22:05:08 +0000 (01:05 +0300)
commitfa7f7a72b27d8bed27e99924eaeeb04edfc8a643
treefff1911eee092fa780f21167929105ce79f14eb2
parent57812764a1367e2cc6cdb9e410e7a0b870d6ac10
Allow incremental GC on Cygwin

Both GWW- and mprotect-based implementations should work. The first one
works only if the collector is compiled with -D USE_WINALLOC passed to
CFLAGS.

* include/private/gcconfig.h [(I386 || X86_64) && CYGWIN32]
(MPROTECT_VDB): Define.
* include/private/gcconfig.h [(I386 || X86_64) && CYGWIN32
&& USE_WINALLOC] (GWW_VDB): Define.
* include/private/gcconfig.h [(I386 || X86_64) && CYGWIN32 && USE_MMAP]
(NEED_FIND_LIMIT, USE_MMAP_ANON): Do not define if USE_WINALLOC.
* include/private/gcconfig.h [GWW_VDB && !USE_WINALLOC && !CPPCHECK]:
Produce an invalid config error.
include/private/gcconfig.h