finalise NEWS.stable
[gnulib.git] / lib / pagealign_alloc.c
index b40d960..cfd301a 100644 (file)
@@ -123,6 +123,9 @@ void *
 pagealign_alloc (size_t size)
 {
   void *ret;
+  /* We prefer the mmap() approach over the posix_memalign() or malloc()
+     based approaches, since the latter often waste an entire memory page
+     per call.  */
 #if HAVE_MMAP
 # ifdef HAVE_MAP_ANONYMOUS
   const int fd = -1;