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

1 2 3 4 5 6

  /external/chromium_org/base/process/
memory.cc 13 const size_t alloc_size = num_items * size; local
16 if (size && ((alloc_size / size) != num_items)) {
21 if (!UncheckedMalloc(alloc_size, result))
24 memset(*result, 0, alloc_size);
  /external/chromium_org/third_party/tcmalloc/chromium/src/
heap-profile-stats.h 32 alloc_size - free_size == other.alloc_size - other.free_size;
37 int64 alloc_size; // Total size of all allocated objects so far. member in struct:HeapProfileStats
  /external/oprofile/libutil/
op_libiberty.c 30 void * xmemdup (void const * input, size_t copy_size, size_t alloc_size)
32 void * output = xcalloc(1, alloc_size);
  /bionic/libc/include/
malloc.h 30 extern void* malloc(size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(1)));
31 extern void* calloc(size_t item_count, size_t item_size) __mallocfunc __wur __attribute__((alloc_size(1,2)));
32 extern void* realloc(void* p, size_t byte_count) __wur __attribute__((alloc_size(2)));
35 extern void* memalign(size_t alignment, size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(2)));
  /development/ndk/platforms/android-L/include/
malloc.h 30 extern void* malloc(size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(1)));
31 extern void* calloc(size_t item_count, size_t item_size) __mallocfunc __wur __attribute__((alloc_size(1,2)));
32 extern void* realloc(void* p, size_t byte_count) __wur __attribute__((alloc_size(2)));
35 extern void* memalign(size_t alignment, size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(2)));
  /external/chromium_org/content/browser/loader/
resource_buffer.cc 94 int alloc_size; local
100 alloc_size = buf_size_;
111 alloc_size = buf_size_ - alloc_end_;
116 alloc_size = alloc_start_;
123 alloc_size = alloc_start_ - alloc_end_;
127 // Make sure alloc_size does not exceed max_alloc_size_. We store the
128 // current value of alloc_size, so that we can use ShrinkLastAllocation to
131 alloc_sizes_.push(alloc_size);
133 if (alloc_size > max_alloc_size_) {
134 alloc_size = max_alloc_size_
    [all...]
  /art/runtime/gc/
heap-inl.h 184 size_t alloc_size, size_t* bytes_allocated,
187 UNLIKELY(IsOutOfMemoryOnAllocation<kGrow>(allocator_type, alloc_size))) {
194 alloc_size = RoundUp(alloc_size, space::BumpPointerSpace::kAlignment);
195 ret = bump_pointer_space_->AllocNonvirtual(alloc_size);
197 *bytes_allocated = alloc_size;
198 *usable_size = alloc_size;
205 ret = rosalloc_space_->Alloc(self, alloc_size, bytes_allocated, usable_size);
208 ret = rosalloc_space_->AllocNonvirtual(self, alloc_size, bytes_allocated, usable_size);
215 ret = dlmalloc_space_->Alloc(self, alloc_size, bytes_allocated, usable_size)
    [all...]
  /prebuilts/ndk/9/platforms/android-19/arch-arm64/usr/include/
malloc.h 31 extern void* malloc(size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(1)));
32 extern void* calloc(size_t item_count, size_t item_size) __mallocfunc __wur __attribute__((alloc_size(1,2)));
33 extern void* realloc(void* p, size_t byte_count) __wur __attribute__((alloc_size(2)));
34 extern void* memalign(size_t alignment, size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(2)));
  /prebuilts/ndk/9/platforms/android-19/arch-mips64/usr/include/
malloc.h 31 extern void* malloc(size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(1)));
32 extern void* calloc(size_t item_count, size_t item_size) __mallocfunc __wur __attribute__((alloc_size(1,2)));
33 extern void* realloc(void* p, size_t byte_count) __wur __attribute__((alloc_size(2)));
34 extern void* memalign(size_t alignment, size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(2)));
  /prebuilts/ndk/9/platforms/android-19/arch-x86_64/usr/include/
malloc.h 31 extern void* malloc(size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(1)));
32 extern void* calloc(size_t item_count, size_t item_size) __mallocfunc __wur __attribute__((alloc_size(1,2)));
33 extern void* realloc(void* p, size_t byte_count) __wur __attribute__((alloc_size(2)));
34 extern void* memalign(size_t alignment, size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(2)));
  /external/compiler-rt/lib/asan/tests/
asan_oob_test.cc 81 for (size_t alloc_size = 1; alloc_size <= 8; alloc_size++) {
83 void *p = malloc(alloc_size);
84 // allocated: [p, p + alloc_size)
87 if (offset + access_size <= alloc_size) {
90 int outside_bytes = offset > alloc_size ? (offset - alloc_size) : 0;
  /external/jemalloc/src/
chunk_mmap.c 106 pages_trim(void *addr, size_t alloc_size, size_t leadsize, size_t size)
110 assert(alloc_size >= leadsize + size);
115 pages_unmap(addr, alloc_size);
125 size_t trailsize = alloc_size - leadsize - size;
169 size_t alloc_size, leadsize; local
171 alloc_size = size + alignment - PAGE;
173 if (alloc_size < size)
176 pages = pages_map(NULL, alloc_size);
181 ret = pages_trim(pages, alloc_size, leadsize, size);
  /external/fio/
smalloc.c 180 static int add_pool(struct pool *pool, unsigned int alloc_size)
186 alloc_size += sizeof(unsigned int);
188 alloc_size += sizeof(struct block_hdr);
189 if (alloc_size < INITIAL_SIZE)
190 alloc_size = INITIAL_SIZE;
193 alloc_size = (alloc_size + SMALLOC_BPL - 1) & ~(SMALLOC_BPL - 1);
194 bitmap_blocks = alloc_size / SMALLOC_BPL;
195 alloc_size += bitmap_blocks * sizeof(unsigned int);
196 pool->mmap_size = alloc_size;
409 size_t alloc_size = size + sizeof(struct block_hdr); local
    [all...]
  /frameworks/rs/cpu_ref/linkloader/include/impl/
ELFSectionProgBits.hxx 42 size_t alloc_size = section_size; local
65 alloc_size += stub_table_size;
69 if (!result->chunk.allocate(alloc_size)) {
  /external/chromium_org/third_party/tcmalloc/vendor/src/
heap-profile-table.cc 120 return (a->alloc_size - a->free_size) > (b->alloc_size - b->free_size);
230 b->alloc_size += bytes;
232 total_.alloc_size += bytes;
301 profile_stats->alloc_size += b.alloc_size;
308 b.alloc_size - b.free_size,
310 b.alloc_size,
377 if (b->alloc_size == 0) {
381 b->alloc_size += r->end_addr - r->start_addr
    [all...]
heap-profile-table.h 64 int64 alloc_size; // Total size of all allocated objects so far member in struct:HeapProfileTable::Stats
70 alloc_size - free_size == x.alloc_size - x.free_size;
388 return (total_.allocs == 0) && (total_.alloc_size == 0);
410 total_.alloc_size += v.bytes;
  /external/chromium_org/tools/memory_inspector/memory_inspector/backends/android/
dumpheap_native_parser.py 68 alloc_size = int(m.group(1))
78 nativeheap.Add(native_heap.Allocation(alloc_size, alloc_count, strace))
  /external/chromium_org/chrome/installer/mini_installer/
mini_string.cc 43 size_t SafeStrLen(const wchar_t* str, size_t alloc_size) {
44 if (!str || !alloc_size)
47 while (--alloc_size && str[len] != L'\0')
  /development/ndk/platforms/android-3/include/linux/
relay.h 53 size_t alloc_size; member in struct:rchan
  /external/chromium_org/chrome/common/
service_process_util.cc 261 uint32 alloc_size = sizeof(ServiceProcessSharedData);
264 (GetServiceProcessSharedMemName(), true, alloc_size))
267 if (!shared_mem_service_data->Map(alloc_size))
270 memset(shared_mem_service_data->memory(), 0, alloc_size);
  /external/chromium_org/third_party/libxml/linux/include/libxml/
xmlversion.h 417 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
  /external/chromium_org/third_party/libxml/mac/include/libxml/
xmlversion.h 417 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
  /external/chromium_org/third_party/libxml/win32/include/libxml/
xmlversion.h 417 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
  /external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
u_upload_mgr.c 163 unsigned alloc_size = align( size, upload->alignment ); local
176 if (MAX2(upload->offset, alloc_offset) + alloc_size > upload->size) {
178 alloc_offset + alloc_size);
209 upload->offset = offset + alloc_size;
  /external/libxml2/include/libxml/
xmlversion.h 439 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))

Completed in 1204 milliseconds

1 2 3 4 5 6