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

1 2 3

  /external/libchrome/base/process/
memory.cc 37 const size_t alloc_size = num_items * size; local
40 if (size && ((alloc_size / size) != num_items)) {
45 if (!UncheckedMalloc(alloc_size, result))
48 memset(*result, 0, alloc_size);
  /external/jemalloc/src/
chunk_mmap.c 10 size_t alloc_size; local
12 alloc_size = size + alignment - PAGE;
14 if (alloc_size < size)
19 pages = pages_map(NULL, alloc_size, commit);
24 ret = pages_trim(pages, alloc_size, leadsize, size, commit);
zone.c 125 size_t alloc_size; local
127 alloc_size = ivsalloc(tsdn_fetch(), ptr, config_prof);
128 if (alloc_size != 0) {
129 assert(alloc_size == size);
  /external/mesa3d/src/gallium/auxiliary/os/
os_memory_aligned.h 62 size_t alloc_size; local
67 * alloc_size = size + alignment + sizeof(void *)
71 if (add_overflow_size_t(size, alignment, &alloc_size) ||
72 add_overflow_size_t(alloc_size, sizeof(void *), &alloc_size)) {
76 ptr = (char *) os_malloc(alloc_size);
  /external/strace/tests/
tail_alloc.c 37 const size_t alloc_size = len + 6 * page_size; local
39 void *p = mmap(NULL, alloc_size, PROT_READ | PROT_WRITE,
42 perror_msg_and_fail("mmap(%zu)", alloc_size);
  /external/strace/tests-m32/
tail_alloc.c 37 const size_t alloc_size = len + 6 * page_size; local
39 void *p = mmap(NULL, alloc_size, PROT_READ | PROT_WRITE,
42 perror_msg_and_fail("mmap(%zu)", alloc_size);
  /external/strace/tests-mx32/
tail_alloc.c 37 const size_t alloc_size = len + 6 * page_size; local
39 void *p = mmap(NULL, alloc_size, PROT_READ | PROT_WRITE,
42 perror_msg_and_fail("mmap(%zu)", alloc_size);
  /external/jemalloc/test/integration/
iterate.c 8 static size_t alloc_size; variable
15 alloc_size += size;
34 alloc_size = 0;
64 alloc_size = 0;
96 alloc_size = 0;
  /external/v8/src/libplatform/tracing/
trace-object.cc 67 size_t alloc_size = 0; local
69 alloc_size += GetAllocLength(name) + GetAllocLength(scope);
71 alloc_size += GetAllocLength(arg_names_[i]);
81 if (arg_is_copy[i]) alloc_size += GetAllocLength(arg_values_[i].as_string);
84 if (alloc_size) {
88 char* ptr = parameter_copy_storage_ = new char[alloc_size];
  /external/boringssl/src/crypto/buf/
buf.c 101 size_t alloc_size = n * 4; local
102 if (alloc_size / 4 != n) {
108 char *new_buf = OPENSSL_realloc(buf->data, alloc_size);
115 buf->max = alloc_size;
170 size_t alloc_size; local
178 alloc_size = size + 1;
179 if (alloc_size < size) {
184 ret = OPENSSL_malloc(alloc_size);
  /external/libvpx/libvpx/vpx/src/
vpx_image.c 113 uint64_t alloc_size; local
123 alloc_size = (fmt & VPX_IMG_FMT_PLANAR) ? (uint64_t)h * s * bps / 8
126 if (alloc_size != (size_t)alloc_size) goto fail;
128 img->img_data = (uint8_t *)vpx_memalign(buf_align, (size_t)alloc_size);
  /external/tensorflow/tensorflow/core/framework/
allocator.cc 82 const std::size_t alloc_size = port::MallocExtension_GetAllocatedSize(p); variable
85 stats_.bytes_in_use += alloc_size;
89 std::max<int64>(stats_.max_alloc_size, alloc_size);
96 const std::size_t alloc_size = variable
99 stats_.bytes_in_use -= alloc_size;
  /system/extras/tests/pagingtest/
pagingtest.c 16 #define ALLOC_SIZE (10 * 1024 * 1024)
141 unsigned long long alloc_size = 0ULL; local
146 //arguments: <program> [test_runs [alloc_size [file_size]]]
154 alloc_size = strtoull(argv[2], NULL, 10);
156 if (!alloc_size) {
157 alloc_size = ALLOC_SIZE;
166 rc = mmap_test(test_runs, alloc_size);
  /art/runtime/gc/space/
large_object_space_test.cc 133 size_t alloc_size, bytes_tl_bulk_allocated; local
134 mirror::Object* ptr = los_->Alloc(self, size_, &alloc_size, nullptr,
space_test.h 179 size_t alloc_size; local
181 alloc_size = object_size;
183 alloc_size = test_rand(&rand_seed) % static_cast<size_t>(-object_size);
186 if (alloc_size < size_of_zero_length_byte_array) {
187 alloc_size = size_of_zero_length_byte_array;
195 object.Assign(Alloc(space, self, alloc_size, &bytes_allocated, nullptr,
198 object.Assign(AllocWithGrowth(space, self, alloc_size, &bytes_allocated, nullptr,
  /external/boringssl/src/crypto/lhash/
lhash.c 178 size_t i, alloc_size; local
180 alloc_size = sizeof(LHASH_ITEM *) * new_num_buckets;
181 if (alloc_size / sizeof(LHASH_ITEM*) != new_num_buckets) {
185 new_buckets = OPENSSL_malloc(alloc_size);
189 OPENSSL_memset(new_buckets, 0, alloc_size);
  /external/boringssl/src/crypto/stack/
stack.c 157 size_t alloc_size = new_alloc * sizeof(void *); local
161 if (new_alloc < sk->num_alloc || alloc_size / sizeof(void *) != new_alloc) {
163 alloc_size = new_alloc * sizeof(void *);
167 if (new_alloc < sk->num_alloc || alloc_size / sizeof(void *) != new_alloc) {
171 data = OPENSSL_realloc(sk->data, alloc_size);
  /external/libcxxabi/src/
fallback_malloc.cpp 88 size_t alloc_size(size_t len) { function in namespace:__anon24571
98 const size_t nelems = alloc_size(len);
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++abi/src/
fallback_malloc.cpp 88 size_t alloc_size(size_t len) { function in namespace:__anon666
98 const size_t nelems = alloc_size(len);
  /art/runtime/mirror/
string-inl.h 227 size_t alloc_size = RoundUp(size, kObjectAlignment); local
247 heap->AllocObjectWithAllocator<kIsInstrumented, true>(self, string_class, alloc_size,
  /bionic/libc/malloc_debug/tests/
malloc_debug_unit_tests.cpp 151 size_t alloc_size = 1024; local
154 uint8_t* pointer = reinterpret_cast<uint8_t*>(debug_malloc(alloc_size));
162 pointer = reinterpret_cast<uint8_t*>(debug_calloc(1, alloc_size));
169 pointer = reinterpret_cast<uint8_t*>(debug_memalign(128, alloc_size));
176 pointer = reinterpret_cast<uint8_t*>(debug_realloc(nullptr, alloc_size));
181 memset(pointer, 0xff, alloc_size);
184 pointer = reinterpret_cast<uint8_t*>(debug_realloc(pointer, alloc_size * 2));
186 for (size_t i = 0; i < alloc_size; i++) {
189 for (size_t i = alloc_size; i < debug_malloc_usable_size(pointer); i++) {
194 pointer = reinterpret_cast<uint8_t*>(debug_realloc(pointer, alloc_size));
    [all...]
  /external/libchrome/base/trace_event/
trace_event_impl.cc 135 size_t alloc_size = 0; local
137 alloc_size += GetAllocLength(name) + GetAllocLength(scope);
139 alloc_size += GetAllocLength(arg_names_[i]);
154 alloc_size += GetAllocLength(arg_values_[i].as_string);
157 if (alloc_size) {
159 parameter_copy_storage_->resize(alloc_size);
161 const char* end = ptr + alloc_size;
  /external/libdrm/amdgpu/
amdgpu_internal.h 97 uint64_t alloc_size; member in struct:amdgpu_bo
  /art/runtime/gc/collector/
mark_compact.cc 82 const size_t alloc_size = RoundUp(obj->SizeOf(), space::BumpPointerSpace::kAlignment); local
92 bump_pointer_ += alloc_size;
  /external/brotli/c/enc/
hash.h 382 size_t alloc_size; local
384 alloc_size = HasherSize(params, one_shot, input_size);
385 self = BROTLI_ALLOC(m, uint8_t, alloc_size);

Completed in 1681 milliseconds

1 2 3