[Gc] backwards #ifdef in gc6.3alpha3

Andrew Begel abegel at eecs.berkeley.edu
Sun Dec 21 01:01:11 PST 2003


This #ifdef in os_dep.c looks backwards to me:

#ifndef USE_MMAP_ANON
   static int zero_fd;
# define OPT_MAP_ANON MAP_ANONYMOUS
#else
# define zero_fd -1
# define OPT_MAP_ANON 0
#endif

It's right before GC_unix_get_mem(): line 1539.

I think it should be #ifdef otherwise anonymous mmaps will fail. Like 
mine is doing right now.

Andrew



More information about the Gc mailing list