[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mallopt(M_MMAP_MAX,0) does not inhibit use of mmap().
From: |
Per Mildner |
Subject: |
mallopt(M_MMAP_MAX,0) does not inhibit use of mmap(). |
Date: |
Fri, 5 Jul 2002 17:37:33 +0200 |
At least up to glibc 2.2.5 the docs incorrectly state that M_MMAP_MAX
inhibits use of mmap(). However, with the default USE_ARENAS, e.g.,
new_heap() always use mmap().
In addition, not all uses of mmap() will update max_n_mmaps, making
malloc_stats() misleading.
malloc.c:
M_MMAP_MAX
...
Setting to 0 disables all use of mmap.
memory.texi:
@item M_MMAP_MAX
... Setting this to zero disables all use of @code{mmap}.
(I would have uses gnatsweb but it twice zapped my carefully crafted
report....)
Regards,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- mallopt(M_MMAP_MAX,0) does not inhibit use of mmap().,
Per Mildner <=