/external/valgrind/main/massif/tests/ |
H A D | pages_as_heap.c | 17 inc_dec, delta, sbrk(0)); 19 brk_stat = (intptr_t)brk(sbrk(0) + inc_dec * delta); 21 printf("brk value at failure: %p\n", sbrk(0)); 27 inc_dec, delta, sbrk(0));
|
/external/valgrind/main/memcheck/tests/ |
H A D | brk2.c | 14 ptr = sbrk(1); 17 printf ("sbrk() failed!\n");
|
/external/valgrind/main/memcheck/tests/linux/ |
H A D | brk.c | 12 void* orig_ds = sbrk(0);
|
/external/chromium_org/third_party/tcmalloc/vendor/src/ |
H A D | system-alloc.cc | 48 #include <unistd.h> // for sbrk, getpagesize, off_t 136 "Whether sbrk can be used to obtain memory."); 201 // Check if we should use sbrk allocation. 206 // memory will be allocated with sbrk before the flag takes effect. 211 // sbrk will release memory if passed a negative number, so we do 227 // like something sbrk() should check for us, and indeed opensolaris 229 // http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/sys/sbrk.c?a=true 230 // http://sourceware.org/cgi-bin/cvsweb.cgi/~checkout~/libc/misc/sbrk.c?rev=1.1.2.1&content-type=text/plain&cvsroot=glibc 231 // Without this check, sbrk may succeed when it ought to fail.) 232 if (reinterpret_cast<intptr_t>(sbrk( 448 SbrkSysAllocator *sbrk = new (sbrk_space) SbrkSysAllocator(); local [all...] |
H A D | malloc_hook_mmap_freebsd.h | 30 // Override mmap/munmap/mremap/sbrk to provide support for calling the 64 void* sbrk(intptr_t increment) __THROW 139 extern "C" void* sbrk(intptr_t increment) __THROW {
|
H A D | malloc_hook_mmap_linux.h | 150 void* sbrk(ptrdiff_t increment) __THROW 207 extern "C" void* sbrk(ptrdiff_t increment) __THROW {
|
H A D | memory_region_map.cc | 41 // mmap, munmap, mremap, sbrk. 59 // sbrk occurrences is a more involved: conceptually to do this one needs to 60 // record some bits of data in particular about any mmap or sbrk call, 63 // or sbrk call (that's how the address space of the process grows). 66 // within an mmap/sbrk hook which is sometimes/frequently is made by a memory 69 // mmap/sbrk call happening in the program: heap-checker gets activated due to 70 // a link-time installed mmap/sbrk hook and it initializes MemoryRegionMap 78 // our mmap/sbrk hooks without causing a deadlock in it. 86 // mmap/sbrk/mremap hook we record the data about the allocation in a 209 // already from within an mmap/sbrk hoo [all...] |
/external/e2fsprogs/e2fsck/ |
H A D | scantest.c | 56 track->brk_start = sbrk(0); 79 (int) (((char *) sbrk(0)) - ((char *) track->brk_start)),
|
H A D | util.c | 334 track->brk_start = sbrk(0); 400 (unsigned long) (((char *) sbrk(0)) -
|
/external/e2fsprogs/resize/ |
H A D | resource_track.c | 29 track->brk_start = sbrk(0); 87 (unsigned long) (((char *) sbrk(0)) -
|
/external/chromium_org/third_party/tcmalloc/chromium/src/ |
H A D | system-alloc.cc | 48 #include <unistd.h> // for sbrk, getpagesize, off_t 271 "Whether sbrk can be used to obtain memory."); 343 // Check if we should use sbrk allocation. 348 // memory will be allocated with sbrk before the flag takes effect. 353 // sbrk will release memory if passed a negative number, so we do 369 // like something sbrk() should check for us, and indeed opensolaris 371 // http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/sys/sbrk.c?a=true 372 // http://sourceware.org/cgi-bin/cvsweb.cgi/~checkout~/libc/misc/sbrk.c?rev=1.1.2.1&content-type=text/plain&cvsroot=glibc 373 // Without this check, sbrk may succeed when it ought to fail.) 374 if (reinterpret_cast<intptr_t>(sbrk( 585 SbrkSysAllocator *sbrk = new (sbrk_space) SbrkSysAllocator(); local [all...] |
H A D | malloc_hook_mmap_freebsd.h | 30 // Override mmap/munmap/mremap/sbrk to provide support for calling the 64 void* sbrk(intptr_t increment) __THROW 139 extern "C" void* sbrk(intptr_t increment) __THROW {
|
H A D | malloc_hook_mmap_linux.h | 175 void* sbrk(ptrdiff_t increment) __THROW 235 // Don't hook sbrk() in Android, since it doesn't expose __sbrk. 240 extern "C" void* sbrk(ptrdiff_t increment) __THROW {
|
H A D | memory_region_map.cc | 41 // mmap, munmap, mremap, sbrk. 59 // sbrk occurrences is a more involved: conceptually to do this one needs to 60 // record some bits of data in particular about any mmap or sbrk call, 63 // or sbrk call (that's how the address space of the process grows). 66 // within an mmap/sbrk hook which is sometimes/frequently is made by a memory 69 // mmap/sbrk call happening in the program: heap-checker gets activated due to 70 // a link-time installed mmap/sbrk hook and it initializes MemoryRegionMap 78 // our mmap/sbrk hooks without causing a deadlock in it. 86 // mmap/sbrk/mremap hook we record the data about the allocation in a 217 // already from within an mmap/sbrk hoo [all...] |
/external/llvm/lib/Support/Unix/ |
H A D | Process.inc | 122 static char *StartOfMemory = reinterpret_cast<char*>(::sbrk(0)); 123 char *EndOfMemory = (char*)sbrk(0);
|
/external/jemalloc/src/ |
H A D | chunk_dss.c | 17 * Protects sbrk() calls. This avoids malloc races among threads, though it 18 * does not protect against races with threads that call sbrk() directly. 36 return (sbrk(increment)); 78 * sbrk() uses a signed increment argument, so take care not to
|
/external/chromium_org/base/ |
H A D | security_unittest.cc | 258 void* brk_heap_address = sbrk(0);
|
/external/chromium_org/third_party/npapi/npspy/extern/nspr/md/ |
H A D | _nextstep.h | 294 void *sbrk(int incr);
|
H A D | _sunos4.h | 135 extern void *sbrk(int);
|
/external/chromium_org/third_party/tcmalloc/chromium/src/windows/ |
H A D | port.h | 291 /* We could maybe use VirtualAlloc for sbrk as well, but no need */ 292 inline void *sbrk(intptr_t increment) { function 293 // sbrk returns -1 on failure
|
/external/chromium_org/third_party/tcmalloc/vendor/src/windows/ |
H A D | port.h | 288 /* We could maybe use VirtualAlloc for sbrk as well, but no need */ 289 inline void *sbrk(intptr_t increment) { function 290 // sbrk returns -1 on failure
|
/external/srec/portable/src/ |
H A D | pmalloc.c | 123 /* Memory Pool sbrk/getmem variables */ 132 #define _Sbrk sbrk
|
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/ |
H A D | tcmalloc_unittest.cc | 60 // at least on FreeBSD, in order to define sbrk. The solution 65 #include <unistd.h> // for testing sbrk hooks 984 // the 64-bit build, and with the sbrk allocator these allocations just 988 // code. The same failure can be forced with the sbrk allocator just by 1192 // Test sbrk 1196 p1 = sbrk(8192); 1199 p1 = sbrk(-8192); 1202 // However, sbrk hook should *not* be called with sbrk(0) 1203 p1 = sbrk( [all...] |
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/ |
H A D | tcmalloc_unittest.cc | 60 // at least on FreeBSD, in order to define sbrk. The solution 65 #include <unistd.h> // for testing sbrk hooks 984 // the 64-bit build, and with the sbrk allocator these allocations just 988 // code. The same failure can be forced with the sbrk allocator just by 1192 // Test sbrk 1196 p1 = sbrk(8192); 1199 p1 = sbrk(-8192); 1202 // However, sbrk hook should *not* be called with sbrk(0) 1203 p1 = sbrk( [all...] |
/external/chromium_org/components/nacl/loader/nonsfi/ |
H A D | nonsfi_sandbox_unittest.cc | 426 char* next_brk = static_cast<char*>(sbrk(0)) + getpagesize();
|