/external/chromium_org/base/process/ |
H A D | 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/ |
H A D | 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
|
H A D | heap-profile-table.cc | 125 return (a->alloc_size - a->free_size) > (b->alloc_size - b->free_size); 220 b->alloc_size += bytes; 222 total_.alloc_size += bytes; 308 profile_stats->alloc_size += b.alloc_size; 316 b.alloc_size - b.free_size, 318 b.alloc_size, 502 b.alloc_size = v->bytes; 518 b.alloc_size [all...] |
/external/oprofile/libutil/ |
H A D | op_libiberty.c | 30 void * xmemdup (void const * input, size_t copy_size, size_t alloc_size) argument 32 void * output = xcalloc(1, alloc_size);
|
/external/chromium_org/content/browser/loader/ |
H A D | 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 [all...] |
/external/chromium_org/third_party/boringssl/src/crypto/buf/ |
H A D | buf.c | 91 size_t n, alloc_size; local 110 alloc_size = n * 4; 111 if (alloc_size / 4 != n) { 118 new_buf = OPENSSL_malloc(alloc_size); 121 new_buf = OPENSSL_realloc_clean(buf->data, buf->max, alloc_size); 123 new_buf = OPENSSL_realloc(buf->data, alloc_size); 132 buf->max = alloc_size; 170 size_t alloc_size; local 178 alloc_size = size + 1; 179 if (alloc_size < siz [all...] |
/external/compiler-rt/lib/asan/tests/ |
H A D | 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/ |
H A D | chunk_mmap.c | 106 pages_trim(void *addr, size_t alloc_size, size_t leadsize, size_t size) argument 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/ |
H A D | smalloc.c | 180 static int add_pool(struct pool *pool, unsigned int alloc_size) argument 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...] |
/external/chromium_org/chrome/installer/mini_installer/ |
H A D | mini_string.cc | 43 size_t SafeStrLen(const wchar_t* str, size_t alloc_size) { argument 44 if (!str || !alloc_size) 47 while (--alloc_size && str[len] != L'\0')
|
/external/chromium_org/third_party/tcmalloc/vendor/src/ |
H A D | 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 [all...] |
H A D | 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/third_party/boringssl/src/crypto/lhash/ |
H A D | lhash.c | 165 size_t i, alloc_size; local 167 alloc_size = sizeof(LHASH_ITEM *) * new_num_buckets; 168 if (alloc_size / sizeof(LHASH_ITEM*) != new_num_buckets) { 172 new_buckets = OPENSSL_malloc(alloc_size); 176 memset(new_buckets, 0, alloc_size);
|
/external/chromium_org/third_party/boringssl/src/crypto/stack/ |
H A D | stack.c | 156 size_t alloc_size = new_alloc * sizeof(void *); local 160 if (new_alloc < sk->num_alloc || alloc_size / sizeof(void *) != new_alloc) { 162 alloc_size = new_alloc * sizeof(void *); 166 if (new_alloc < sk->num_alloc || alloc_size / sizeof(void *) != new_alloc) { 170 data = OPENSSL_realloc(sk->data, alloc_size);
|
/external/chromium_org/chromecast/media/cma/ipc/ |
H A D | media_message_unittest.cc | 35 void* data, size_t size, size_t alloc_size) { 36 CHECK_LE(alloc_size, size); 38 new ExternalMemoryBlock(data, alloc_size)); 34 DummyAllocator( void* data, size_t size, size_t alloc_size) argument
|
/external/chromium_org/chrome/common/ |
H A D | 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/libvpx/source/libvpx/vpx/src/ |
H A D | vpx_image.c | 143 const uint64_t alloc_size = (fmt & VPX_IMG_FMT_PLANAR) ? local 146 if (alloc_size != (size_t)alloc_size) 149 img->img_data = (uint8_t *)vpx_memalign(buf_align, (size_t)alloc_size);
|
/external/chromium_org/third_party/libxml/linux/include/libxml/ |
H A D | xmlversion.h | 417 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
|
/external/chromium_org/third_party/libxml/mac/include/libxml/ |
H A D | xmlversion.h | 417 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
|
/external/chromium_org/third_party/libxml/win32/include/libxml/ |
H A D | xmlversion.h | 417 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
H A D | 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/ |
H A D | xmlversion.h | 439 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
|
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | 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/libusb-compat/libusb/ |
H A D | core.c | 417 size_t alloc_size = sizeof(struct usb_endpoint_descriptor) * num_endpoints; local 420 dest->endpoint = malloc(alloc_size); 423 memset(dest->endpoint, 0, alloc_size); 451 size_t alloc_size = sizeof(struct usb_interface_descriptor) local 455 dest->altsetting = malloc(alloc_size); 458 memset(dest->altsetting, 0, alloc_size); 477 size_t alloc_size = sizeof(struct usb_interface) * num_interfaces; local 480 dest->interface = malloc(alloc_size); 483 memset(dest->interface, 0, alloc_size); 510 size_t alloc_size; local [all...] |
/external/chromium_org/tools/memory_inspector/memory_inspector/classification/ |
H A D | native_heap_classifier.py | 135 for blamed_dir, alloc_size in blamed_dirs.most_common(): 136 if (1.0 * alloc_size / total_allocated) < threshold:
|