Lines Matching defs:MMAP
62 are serviced via mmap(), where the worst case wastage is about
64 mmap unit); typically 4096 or 8192 bytes.
129 System requirements: Any combination of MORECORE and/or MMAP/MUNMAP
131 the CALL_MORECORE macro) and/or mmap/munmap or any emulation
134 MORECORE and MMAP are enabled. On Win32, it uses emulations
166 or actions surrounding MORECORE and MMAP that have times
385 True if this system supports mmap or an emulation of it. If so, and
386 HAVE_MORECORE is not true, MMAP is used for all system
387 allocation. If set and HAVE_MORECORE is true as well, MMAP is
392 to MMAP, so long as they are adjacent.
399 True if mmap clears memory so calloc doesn't need to. This is true
400 for standard unix mmap using /dev/zero and on WIN32 except for WINCE.
453 make this more than a page. However, systems with MMAP tend to
487 The request size threshold for using MMAP to directly service a
489 using already-existing space will be serviced via mmap. (If enough
490 normal freed space already exists it is used instead.) Using mmap
493 serviced through mmap is never reused by any other request (at least
503 requests, as happens with normal chunks. The advantages of mmap
507 disable mmap by setting to MAX_SIZE_T.
569 /* Mac OSX docs advise not to use sbrk; it seems better to use mmap */
962 M_MMAP_THRESHOLD -3 256*1024 any (or 0 if no MMAP support)
1207 pool or in unused MMAP segments. You can call this after freeing
1228 via sbrk and mmap), the maximum amount (which may be more than
1475 #include <sys/mman.h> /* for mmap */
1478 #include <sys/mman.h> /* for mmap */
1625 /* -------------------------- MMAP preliminaries ------------------------- */
1634 /* MORECORE and MMAP must return MFAIL on failure */
1648 #define MMAP_DEFAULT(s) mmap(0, (s), MMAP_PROT, MMAP_FLAGS, -1, 0)
1651 Nearly all versions of mmap support MAP_ANONYMOUS, so the following
1658 mmap(0, (s), MMAP_PROT, MMAP_FLAGS, dev_zero_fd, 0)) : \
1659 mmap(0, (s), MMAP_PROT, MMAP_FLAGS, dev_zero_fd, 0))
1666 /* Win32 MMAP via VirtualAlloc */
1672 /* For direct MMAP, use MEM_TOP_DOWN to minimize interference */
1728 #ifdef MMAP
1729 #define CALL_MMAP(s) MMAP(s)
1730 #else /* MMAP */
1732 #endif /* MMAP */
1746 #define MMAP(s) MFAIL
1750 #define CALL_MMAP(s) MMAP(s)
2174 3. Chunks allocated via mmap, have both cinuse and pinuse bits
2418 the space. Large chunks that are directly allocated by mmap are not
2423 MMAP. Any call to MMAP might or might not return memory that is
2427 used preferentially to MMAP when both are available -- see
2428 sys_alloc.) When allocating using MMAP, we don't use any of the
2430 implementations of unix mmap, or distinguish reserving from
2473 flag_t sflags; /* mmap and extern flag */
2539 MORECORE or MMAP. Attempted frees and reallocs of any address less
2549 Bits recording whether to use MMAP, locks, or contiguous MORECORE
2553 obtained via MORECORE or MMAP.
2678 /* For mmap, use granularity alignment on windows, else page-align */
3010 /* Check if address a is at least as high as any from MORECORE or MMAP */
3839 /* Malloc using mmap */
3871 /* Realloc using mmap */
3875 if (is_small(nb)) /* Can't shrink mmap regions below small size */
4050 /* Get memory from system using MORECORE or MMAP */
4089 2. A call to MMAP new space (disabled if not HAVE_MMAP).
4091 fulfill a request, and HAVE_MMAP is true, then mmap is
4094 sbrk cannot contiguously expand the heap, but mmap may be able to
4166 if (HAVE_MMAP && tbase == CMFAIL) { /* Try MMAP */
4584 4. If request size >= mmap threshold, try to directly mmap this chunk.
5007 flag_t was_enabled; /* to disable mmap */
5044 free/realloc space internal to a segregated mmap region.
6155 * Use segments to unify sbrk-based and mmap-based system allocation,
6179 * Fix mmap-related #defines. Thanks to Lubos Lunak.
6182 * Default trim and mmap thresholds now 256K.
6189 * new WIN32 sbrk, mmap, munmap, lock code from <Walter@GeNeSys-e.de>.
6199 * Use mmap as backup to sbrk
6238 * Add support for mmap, with help from