Fix memory allocation on GCF (Linux/x64)
authorIvan Maidanski <ivmai@mail.ru>
Wed, 3 Oct 2018 08:02:07 +0000 (11:02 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 3 Oct 2018 08:02:07 +0000 (11:02 +0300)
commit32704bf8af77b7d2343d1ffc0e85ef0a735ab890
tree90accf8bf9b9e9f86b4de81422a7dd85d2bbe861
parent4e979bdd8e6e57b36660a1c2600a62583ba6056f
Fix memory allocation on GCF (Linux/x64)

Issue #225 (bdwgc).

GCF (Google Cloud Function) seems to have mmap("/dev/zero") operation
unsupported.  The workaround is to use mmap(MAP_ANONYMOUS).

* include/private/gcconfig.h [X86_64 && LINUX && __GLIBC__
&& !__UCLIBC__] (USE_MMAP_ANON): Define macro; add comment.
include/private/gcconfig.h