Searched refs:alloc_size (Results 1 - 25 of 62) sorted by relevance

123

/external/chromium_org/base/process/
H A Dmemory.cc13 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 Dheap-profile-stats.h32 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 Dheap-profile-table.cc125 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 Dop_libiberty.c30 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 Dresource_buffer.cc94 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 Dbuf.c91 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 Dasan_oob_test.cc81 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 Dchunk_mmap.c106 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 Dsmalloc.c180 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 Dmini_string.cc43 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 Dheap-profile-table.cc120 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 Dheap-profile-table.h64 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 Dlhash.c165 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 Dstack.c156 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 Dmedia_message_unittest.cc35 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 Dservice_process_util.cc261 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 Dvpx_image.c143 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 Dxmlversion.h417 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
/external/chromium_org/third_party/libxml/mac/include/libxml/
H A Dxmlversion.h417 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
/external/chromium_org/third_party/libxml/win32/include/libxml/
H A Dxmlversion.h417 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_upload_mgr.c163 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 Dxmlversion.h439 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_upload_mgr.c163 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 Dcore.c417 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 Dnative_heap_classifier.py135 for blamed_dir, alloc_size in blamed_dirs.most_common():
136 if (1.0 * alloc_size / total_allocated) < threshold:

Completed in 6751 milliseconds

123