HomeSort by relevance Sort by last modified time
    Searched refs:sbrk (Results 1 - 25 of 36) sorted by null

1 2

  /bionic/libc/bionic/
brk.cpp 47 void* sbrk(ptrdiff_t increment) { function
  /external/chromium_org/third_party/tcmalloc/vendor/src/
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(0)) + size < size)
448 SbrkSysAllocator *sbrk = new (sbrk_space) SbrkSysAllocator(); local
    [all...]
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 {
malloc_hook_mmap_linux.h 150 void* sbrk(ptrdiff_t increment) __THROW
207 extern "C" void* sbrk(ptrdiff_t increment) __THROW {
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 hook
    [all...]
  /bionic/tests/
unistd_test.cpp 35 return sbrk(0);
90 ASSERT_EQ(reinterpret_cast<void*>(-1), sbrk(PTRDIFF_MAX));
96 ASSERT_EQ(reinterpret_cast<void*>(-1), sbrk(PTRDIFF_MIN));
101 ASSERT_EQ(reinterpret_cast<void*>(-1), sbrk(PTRDIFF_MIN + 1));
118 ASSERT_EQ(reinterpret_cast<void*>(-1), sbrk(SBRK_MIN));
128 cur_brk = reinterpret_cast<uintptr_t>(sbrk(overflow_brk));
131 ASSERT_EQ(reinterpret_cast<void*>(-1), sbrk(SBRK_MAX));
220 uintptr_t p = reinterpret_cast<uintptr_t>(sbrk(0));
  /external/e2fsprogs/e2fsck/
scantest.c 56 track->brk_start = sbrk(0);
79 (int) (((char *) sbrk(0)) - ((char *) track->brk_start)),
util.c 334 track->brk_start = sbrk(0);
400 (unsigned long) (((char *) sbrk(0)) -
  /external/e2fsprogs/resize/
resource_track.c 29 track->brk_start = sbrk(0);
87 (unsigned long) (((char *) sbrk(0)) -
  /external/chromium_org/third_party/tcmalloc/chromium/src/
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(0)) + size < size)
585 SbrkSysAllocator *sbrk = new (sbrk_space) SbrkSysAllocator(); local
    [all...]
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 {
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 {
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 hook
    [all...]
  /external/jemalloc/src/
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
  /bionic/libc/include/
unistd.h 166 extern void *sbrk(ptrdiff_t);
  /development/ndk/platforms/android-12/include/
unistd.h 162 extern void *sbrk(ptrdiff_t);
  /development/ndk/platforms/android-3/include/
unistd.h 151 extern void *sbrk(ptrdiff_t);
  /development/ndk/platforms/android-8/include/
unistd.h 155 extern void *sbrk(ptrdiff_t);
  /development/ndk/platforms/android-9/include/
unistd.h 159 extern void *sbrk(ptrdiff_t);
  /development/ndk/platforms/android-L/include/
unistd.h 169 extern void *sbrk(ptrdiff_t);
  /external/chromium_org/base/
security_unittest.cc 258 void* brk_heap_address = sbrk(0);
  /external/chromium_org/third_party/npapi/npspy/extern/nspr/md/
_nextstep.h 294 void *sbrk(int incr);
_sunos4.h 135 extern void *sbrk(int);
  /external/chromium_org/third_party/tcmalloc/chromium/src/windows/
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/
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

Completed in 1264 milliseconds

1 2