Lines Matching defs:sbrk

155        Additionally, even when size_t is unsigned, sbrk (which is by
243 MORECORE sbrk
279 /* Use the supplied emulation of sbrk */
280 #define MORECORE sbrk
303 static void *sbrk(long size);
587 sbrk fails, and mmap is used as a backup (which is done only if
590 address space, so sbrk cannot perform contiguous expansion, but
732 Because trimming via sbrk can be slow on some systems, and can
764 sbrk, mmap, and munmap otherwise degrade performance, the default
793 retain whenever sbrk is called. It is used in two ways internally:
795 * When sbrk is called to extend the top of the arena to satisfy
796 a new malloc request, this much padding is added to the sbrk
805 The main reason for using padding is to avoid calling sbrk so
808 after trimming) will invoke sbrk, which needlessly wastes
813 systems where sbrk is relatively slow, it can pay to increase
874 better off using normal sbrk-based allocation routines that
917 MORECORE-related declarations. By default, rely on sbrk
924 extern Void_t* sbrk(ptrdiff_t);
926 extern Void_t* sbrk();
939 #define MORECORE sbrk
957 contiguous increasing addresses. This is true of unix sbrk. Even
1488 argument to sbrk/MORECORE. If size_t is unsigned, then it cannot
1489 actually be size_t, because sbrk supports negative args, so it is
1498 holes in address spaces -- in this case sbrk cannot contiguously
1503 If you are using this malloc with something other than unix sbrk to
2156 /* Bookkeeping for sbrk */
2158 char* sbrk_base; /* first address returned by sbrk,
2327 /* unless mmap has been used as sbrk backup */
2764 sbrk cannot extend to give contiguous space, but space is available
2786 /* We do not need, and cannot use, another sbrk call to find end */
2790 Record that we no longer have a contiguous sbrk region.
2815 * If the first time through or noncontiguous, we need to call sbrk
2821 * If there was an intervening foreign sbrk, we need to adjust sbrk
2859 If this isn't adjacent to a previous sbrk, then we will not
2878 Note that if second sbrk did NOT fail, we assume that space
2879 is contiguous with first sbrk. This is a safe assumption unless
2880 program is multithreaded but doesn't use locks and a foreign sbrk
2907 /* Adjust top based on results of second sbrk */
2922 Otherwise, we either have a gap due to foreign sbrk or a
2997 arguments to sbrk) if there is unused memory at the `high' end of
3012 char* current_brk; /* address returned by pre-check sbrk call */
3013 char* new_brk; /* address returned by post-check sbrk call */
3016 /* Don't bother trying if sbrk doesn't provide contiguous regions */
3029 This avoids problems if there were foreign sbrk calls.
4277 arguments to sbrk) if there is unused memory at the `high' end of
4403 system (both via sbrk and mmap), the maximum amount (which may be
4414 (normally sbrk) outside of malloc.
4524 Emulation of sbrk for win32.
4620 /* sbrk for windows */
4621 static void *sbrk (long size) {
4627 printf ("sbrk %d\n", size);
5020 * new WIN32 sbrk, mmap, munmap, lock code from <Walter@GeNeSys-e.de>.
5026 * Use mmap as backup to sbrk, if available; fold these mmap-related
5036 * Further improve WIN32 'sbrk()' emulation's 'findRegion()' routine
5054 * Improve WIN32 'sbrk()' emulation's 'findRegion()' routine to
5064 * Added anonymously donated WIN32 sbrk emulation
5081 avoid surprises about sbrk alignment conventions.
5085 * More precautions for cases where other routines call sbrk,