in mmap_probe mode, use MAP_ANON instead of MAP_ANONYMOUS
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 6 Mar 2009 21:39:41 +0000 (21:39 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 6 Mar 2009 21:39:41 +0000 (21:39 +0000)
src/conv-core/isomalloc.c

index 774bb10fa755ce6426a49b89a63d730b6b0ce359..ae70b719a87d562b759b608556ab59bd1fb4c51a 100644 (file)
@@ -1876,7 +1876,10 @@ static int try_largest_mmap_region(memRegion_t *destRegion)
   if (sizeof(size_t) > 8) size = size>>2;  /* 25% of machine address space! */
   while (1) { /* test out an allocation of this size */
        range=mmap(NULL,size,PROT_READ|PROT_WRITE,
-                    MAP_PRIVATE|MAP_ANONYMOUS
+                    MAP_PRIVATE
+#if CMK_HAS_MMAP_ANON
+                    |MAP_ANON
+#endif
 #if CMK_HAS_MMAP_NORESERVE
                      |MAP_NORESERVE
 #endif