Lines Matching refs:mmap

120 	    mmap(), the worst case wastage is 8 bytes plus the remainder
121 from a system page (the minimal mmap unit); typically 4096 bytes.
168 Define to non-zero to optionally make malloc() use mmap() to
208 controlling interaction with host system routines (sbrk, mmap, etc).
320 mmap-based options are not currently supported in WIN32.
467 Define HAVE_MMAP to optionally make malloc() use mmap() to
638 The trim threshold and the mmap control parameters (see below)
645 mmap threshold of 192K led to near-minimal long term resource
664 sbrk, mmap, and munmap otherwise degrade performance, the default
716 M_MMAP_THRESHOLD is the request size threshold for using mmap()
718 be allocated using already-existing space will be serviced via mmap.
721 Using mmap segregates relatively large chunks of memory so that
723 system. A request serviced through mmap is never reused by any
738 2. It can lead to more wastage because of mmap page alignment
744 malloc steps is faster than going through a system's mmap.
746 All together, these considerations should lead you to use mmap
763 service using mmap. This parameter exists because:
766 use by mmap.
767 2. In most systems, overreliance on mmap can degrade overall
775 Setting to 0 disables all use of mmap. If HAVE_MMAP is not set,
1223 2. Chunks allocated via mmap, which have the second-lowest-order
1264 serviced via calls to mmap, and then later released via munmap.
1307 /* size field is or'ed with IS_MMAPPED if the chunk was obtained with mmap() */
1346 /* check for mmap()'ed chunk */
1560 /* The maximum via either sbrk or mmap */
1792 /* Routines dealing with mmap(). */
1817 p = (mchunkptr)mmap(0, size, PROT_READ|PROT_WRITE,
1825 p = (mchunkptr)mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
2078 5. If the request size meets the mmap threshold and the
2079 system supports mmap, and there are few enough currently
2080 allocated mmapped regions, and a call to mmap succeeds,
2316 /* If big and would otherwise need to extend, try to use mmap instead */
2348 2. If the chunk was allocated via mmap, it is release via munmap().
2462 Chunks that were obtained via mmap cannot be extended or shrunk
3083 via sbrk and mmap), the maximum amount (which may be more than
3085 number of simultaneous mmap regions used, and the current number
3103 fprintf(stderr, "max mmap regions = %10u\n",
3194 * Add support for mmap, with help from