Lines Matching defs:MMAP
63 are serviced via mmap(), where the worst case wastage is about
65 mmap unit); typically 4096 or 8192 bytes.
119 System requirements: Any combination of MORECORE and/or MMAP/MUNMAP
121 the CALL_MORECORE macro) and/or mmap/munmap or any emulation
124 MORECORE and MMAP are enabled. On Win32, it uses emulations
156 or actions surrounding MORECORE and MMAP that have times
348 True if this system supports mmap or an emulation of it. If so, and
349 HAVE_MORECORE is not true, MMAP is used for all system
350 allocation. If set and HAVE_MORECORE is true as well, MMAP is
355 to MMAP, so long as they are adjacent.
362 True if mmap clears memory so calloc doesn't need to. This is true
363 for standard unix mmap using /dev/zero and on WIN32 except for WINCE.
412 make this more than a page. However, systems with MMAP tend to
446 The request size threshold for using MMAP to directly service a
448 using already-existing space will be serviced via mmap. (If enough
449 normal freed space already exists it is used instead.) Using mmap
452 serviced through mmap is never reused by any other request (at least
462 requests, as happens with normal chunks. The advantages of mmap
466 disable mmap by setting to MAX_SIZE_T.
525 /* Mac OSX docs advise not to use sbrk; it seems better to use mmap */
877 M_MMAP_THRESHOLD -3 256*1024 any (or 0 if no MMAP support)
1059 pool or in unused MMAP segments. You can call this after freeing
1080 via sbrk and mmap), the maximum amount (which may be more than
1327 #include <sys/mman.h> /* for mmap */
1330 #include <sys/mman.h> /* for mmap */
1467 /* -------------------------- MMAP preliminaries ------------------------- */
1476 /* MORECORE and MMAP must return MFAIL on failure */
1490 #define MMAP_DEFAULT(s) mmap(0, (s), MMAP_PROT, MMAP_FLAGS, -1, 0)
1493 Nearly all versions of mmap support MAP_ANONYMOUS, so the following
1500 mmap(0, (s), MMAP_PROT, MMAP_FLAGS, dev_zero_fd, 0)) : \
1501 mmap(0, (s), MMAP_PROT, MMAP_FLAGS, dev_zero_fd, 0))
1508 /* Win32 MMAP via VirtualAlloc */
1514 /* For direct MMAP, use MEM_TOP_DOWN to minimize interference */
1571 #ifdef MMAP
1572 #define CALL_MMAP(s) MMAP(s)
1573 #else /* MMAP */
1575 #endif /* MMAP */
1589 #define MMAP(s) MFAIL
1593 #define CALL_MMAP(s) MMAP(s)
2048 3. Chunks allocated via mmap, have both cinuse and pinuse bits
2289 the space. Large chunks that are directly allocated by mmap are not
2294 MMAP. Any call to MMAP might or might not return memory that is
2298 used preferentially to MMAP when both are available -- see
2299 sys_alloc.) When allocating using MMAP, we don't use any of the
2301 implementations of unix mmap, or distinguish reserving from
2344 flag_t sflags; /* mmap and extern flag */
2410 MORECORE or MMAP. Attempted frees and reallocs of any address less
2417 Bits recording whether to use MMAP, locks, or contiguous MORECORE
2421 obtained via MORECORE or MMAP.
2537 /* For mmap, use granularity alignment on windows, else page-align */
2868 /* Check if address a is at least as high as any from MORECORE or MMAP */
3666 /* Malloc using mmap */
3693 /* Realloc using mmap */
3696 if (is_small(nb)) /* Can't shrink mmap regions below small size */
3870 /* Get memory from system using MORECORE or MMAP */
3891 2. A call to MMAP new space (disabled if not HAVE_MMAP).
3893 fulfill a request, and HAVE_MMAP is true, then mmap is
3896 sbrk cannot contiguously expand the heap, but mmap may be able to
3966 if (HAVE_MMAP && tbase == CMFAIL) { /* Try MMAP */
4483 flag_t was_enabled; /* to disable mmap */
4520 free/realloc space internal to a segregated mmap region.
4611 4. If request size >= mmap threshold, try to directly mmap this chunk.
5548 * Use segments to unify sbrk-based and mmap-based system allocation,
5572 * Fix mmap-related #defines. Thanks to Lubos Lunak.
5575 * Default trim and mmap thresholds now 256K.
5582 * new WIN32 sbrk, mmap, munmap, lock code from <Walter@GeNeSys-e.de>.
5592 * Use mmap as backup to sbrk
5631 * Add support for mmap, with help from