• Home
  • Raw
  • Download

Lines Matching refs:sbrk

191      Define this on MS win (95, nt) platforms to compile in sbrk emulation.
196 MORECORE (default: sbrk)
202 holds for sbrk).
208 controlling interaction with host system routines (sbrk, mmap, etc).
319 WIN32 causes an emulation of sbrk to be compiled in
333 Microsoft Visual C++ data structures and routines used in the 'sbrk'
632 Because trimming via sbrk can be slow on some systems, and can
664 sbrk, mmap, and munmap otherwise degrade performance, the default
683 retain whenever sbrk is called. It is used in two ways internally:
685 * When sbrk is called to extend the top of the arena to satisfy
686 a new malloc request, this much padding is added to the sbrk
695 The main reason for using padding is to avoid calling sbrk so
698 after trimming) will invoke sbrk, which needlessly wastes
703 systems where sbrk is relatively slow, it can pay to increase
770 better off using normal sbrk-based allocation routines that
828 extern Void_t* sbrk(ptrdiff_t);
830 extern Void_t* sbrk();
834 #define MORECORE sbrk
938 Emulation of sbrk for WIN32
1554 /* The first value returned from sbrk */
1557 /* The maximum memory obtained from system via sbrk */
1560 /* The maximum via either sbrk or mmap */
1566 /* The total memory obtained from system via sbrk */
1924 Main interface to sbrk (but see also malloc_trim).
1933 char* brk; /* return value from sbrk */
1935 INTERNAL_SIZE_T correction; /* bytes for 2nd sbrk call */
1936 char* new_brk; /* return of 2nd sbrk call */
1950 /* (We also correct below if an intervening foreign sbrk call.) */
1957 /* Fail if sbrk failed or if a foreign sbrk call killed our space */
1973 else /* Someone else called sbrk(). Count those bytes as sbrked_mem. */
2004 /* There must have been an intervening foreign sbrk call. */
2084 obtaining more space from the system (normally using sbrk,
2088 sbrk calls to be consolidated, but does not require
2090 mallocs with other sbrk calls.
2654 /* (This can only happen when new chunk is sbrk'ed.) */
2922 arguments to sbrk) if there is unused memory at the `high' end of
2950 char* current_brk; /* address returned by pre-check sbrk call */
2951 char* new_brk; /* address returned by negative sbrk call */
2963 /* Test to make sure no one else called sbrk */
2972 if (new_brk == (char*)(MORECORE_FAILURE)) /* sbrk failed? */
3083 via sbrk and mmap), the maximum amount (which may be more than
3176 * Improve WIN32 'sbrk()' emulation's 'findRegion()' routine to
3186 * Added anonymously donated WIN32 sbrk emulation
3203 avoid surprises about sbrk alignment conventions.
3207 * More precautions for cases where other routines call sbrk,