Lines Matching refs:MORECORE
117 System requirements: Any combination of MORECORE and/or MMAP/MUNMAP
122 MORECORE and MMAP are enabled. On Win32, it uses emulations
154 or actions surrounding MORECORE and MMAP that have times
291 MORECORE default: sbrk
293 memory. See below for guidance on writing custom MORECORE
294 functions. The type of the argument to sbrk/MORECORE varies across
302 version of MORECORE.
305 If true, take advantage of fact that consecutive calls to MORECORE
313 True if MORECORE cannot release space back to the system when given
315 using a hand-crafted MORECORE
323 used as a backup strategy in cases where MORECORE fails to provide
382 most systems with contiguous MORECORE, there is no reason to
396 useful in long-lived programs using contiguous MORECORE. Because
534 #ifndef MORECORE
535 #define MORECORE sbrk
536 #endif /* MORECORE */
1276 /* MORECORE and MMAP must return MFAIL on failure */
1360 #define CALL_MORECORE(S) MORECORE(S)
1365 /* mstate bit set if continguous morecore disabled or failed */
1380 MORECORE. In many cases sys_alloc requires two calls, that should
1382 protect against direct calls to MORECORE by other threads not
1833 adjacent to an existing segment. MORECORE normally contiguously
1835 which is simpler and faster to deal with. (This is why MORECORE is
1874 MORECORE so can be merged with surrounding MORECORE'd segments
1875 and deallocated/trimmed using MORECORE with negative arguments.
1984 MORECORE or MMAP. Attempted frees and reallocs of any address less
1991 Bits recording whether to use MMAP, locks, or contiguous MORECORE
1995 obtained via MORECORE or MMAP.
2368 /* Check if address a is at least as high as any from MORECORE or MMAP */
3358 /* Get memory from system using MORECORE or MMAP */
3376 1. A call to MORECORE that can normally contiguously extend memory.
3380 Note that under the default settings, if MORECORE is unable to
3386 3. A call to MORECORE that cannot usually contiguously extend memory.
3403 /* Can't call MORECORE if size is negative when treated as signed */
3412 /* Subtract out existing available top space from MORECORE request. */
3462 if (HAVE_MORECORE && tbase == CMFAIL) { /* Try noncontiguous MORECORE */
4828 /* -------------------- Alternative MORECORE functions ------------------- */
4831 Guidelines for creating a custom version of MORECORE:
4833 * For best performance, MORECORE should allocate in multiples of pagesize.
4834 * MORECORE may allocate more memory than requested. (Or even less,
4836 * MORECORE must not allocate memory when given argument zero, but
4839 * For best performance, consecutive calls to MORECORE with positive
4842 * Even though consecutive calls to MORECORE need not return contiguous
4845 * MORECORE need not handle negative arguments -- it may instead
4847 Negative arguments are always multiples of pagesize. MORECORE
4852 As an example alternative MORECORE, here is a custom allocator
4859 #define MORECORE osMoreCore
4964 * Better detection and support for non-contiguousness of MORECORE.