Home
last modified time | relevance | path

Searched refs:allocated_size (Results 1 – 25 of 36) sorted by relevance

12

/external/protobuf/src/google/protobuf/
Drepeated_field.cc72 if (old_rep && old_rep->allocated_size > 0) { in InternalExtend()
74 old_rep->allocated_size * sizeof(rep_->elements[0])); in InternalExtend()
75 rep_->allocated_size = old_rep->allocated_size; in InternalExtend()
77 rep_->allocated_size = 0; in InternalExtend()
100 for (int i = start + num; i < rep_->allocated_size; ++i) in CloseGap()
103 rep_->allocated_size -= num; in CloseGap()
107 if (rep_ != NULL && current_size_ < rep_->allocated_size) { in AddWeak()
110 if (!rep_ || rep_->allocated_size == total_size_) { in AddWeak()
113 ++rep_->allocated_size; in AddWeak()
Drepeated_field.h611 int allocated_size;
1501 int n = rep_->allocated_size;
1585 if (rep_ != NULL && current_size_ < rep_->allocated_size) {
1588 if (!rep_ || rep_->allocated_size == total_size_) {
1591 ++rep_->allocated_size;
1601 if (rep_ != NULL && current_size_ < rep_->allocated_size) {
1605 if (!rep_ || rep_->allocated_size == total_size_) {
1608 ++rep_->allocated_size;
1655 int allocated_elems = rep_->allocated_size - current_size_;
1659 if (rep_->allocated_size < current_size_) {
[all …]
/external/webp/src/utils/
Dbit_writer_utils.c208 size_t allocated_size; in VP8LBitWriterResize() local
218 allocated_size = (3 * max_bytes) >> 1; in VP8LBitWriterResize()
219 if (allocated_size < size_required) allocated_size = size_required; in VP8LBitWriterResize()
221 allocated_size = (((allocated_size >> 10) + 1) << 10); in VP8LBitWriterResize()
222 allocated_buf = (uint8_t*)WebPSafeMalloc(1ULL, allocated_size); in VP8LBitWriterResize()
233 bw->end_ = bw->buf_ + allocated_size; in VP8LBitWriterResize()
/external/pcre/dist2/src/sljit/
DsljitExecAllocator.c220 static sljit_uw allocated_size; variable
277 allocated_size += size; in sljit_malloc_exec()
298 allocated_size += size; in sljit_malloc_exec()
309 allocated_size += chunk_size; in sljit_malloc_exec()
326 allocated_size -= header->size; in sljit_free_exec()
354 if (total_size - free_block->size > (allocated_size * 3 / 2)) { in sljit_free_exec()
DsljitProtExecAllocator.c287 static sljit_uw allocated_size; variable
347 allocated_size += size; in sljit_malloc_exec()
375 allocated_size += size; in sljit_malloc_exec()
387 allocated_size += chunk_size; in sljit_malloc_exec()
406 allocated_size -= header->size; in sljit_free_exec()
434 if (total_size - free_block->size > (allocated_size * 3 / 2)) { in sljit_free_exec()
/external/curl/lib/
Dsendf.c139 return psnd->buffer && psnd->allocated_size && in Curl_recv_has_postponed_data()
147 size_t bytestorecv = psnd->allocated_size - psnd->recv_size; in pre_receive_plain()
162 psnd->allocated_size = 2 * conn->data->set.buffer_size; in pre_receive_plain()
163 psnd->buffer = malloc(psnd->allocated_size); in pre_receive_plain()
171 bytestorecv = psnd->allocated_size; in pre_receive_plain()
182 psnd->allocated_size = 0; in pre_receive_plain()
196 DEBUGASSERT(psnd->allocated_size > 0); in get_pre_recved()
197 DEBUGASSERT(psnd->recv_size <= psnd->allocated_size); in get_pre_recved()
214 psnd->allocated_size = 0; in get_pre_recved()
/external/libchrome/base/trace_event/
Dmalloc_dump_provider.cc36 size_t allocated_size; member
52 crt_heap_info->allocated_size += heap_entry.cbData; in WinHeapMemoryDumpImpl()
130 allocated_objects_size = main_heap_info.allocated_size; in OnMemoryDump()
/external/compiler-rt/lib/interception/
Dinterception_win.cc293 uptr allocated_size; member
356 current->allocated_size = 0; in AllocateMemoryForTrampoline()
360 } else if (current->max_size - current->allocated_size > size) { in AllocateMemoryForTrampoline()
363 uptr next_address = current->content + current->allocated_size; in AllocateMemoryForTrampoline()
379 uptr allocated_space = region->content + region->allocated_size; in AllocateMemoryForTrampoline()
380 region->allocated_size += size; in AllocateMemoryForTrampoline()
/external/llvm-project/compiler-rt/lib/interception/
Dinterception_win.cpp308 uptr allocated_size; member
371 current->allocated_size = 0; in AllocateMemoryForTrampoline()
375 } else if (current->max_size - current->allocated_size > size) { in AllocateMemoryForTrampoline()
378 uptr next_address = current->content + current->allocated_size; in AllocateMemoryForTrampoline()
394 uptr allocated_space = region->content + region->allocated_size; in AllocateMemoryForTrampoline()
395 region->allocated_size += size; in AllocateMemoryForTrampoline()
/external/grpc-grpc/src/core/tsi/
Dfake_transport_security.cc48 size_t allocated_size; member
159 frame->allocated_size = frame->size; in tsi_fake_frame_ensure_size()
161 static_cast<unsigned char*>(gpr_malloc(frame->allocated_size)); in tsi_fake_frame_ensure_size()
162 } else if (frame->size > frame->allocated_size) { in tsi_fake_frame_ensure_size()
166 frame->allocated_size = frame->size; in tsi_fake_frame_ensure_size()
182 frame->allocated_size = TSI_FAKE_FRAME_INITIAL_ALLOCATED_SIZE; in tsi_fake_frame_decode()
184 static_cast<unsigned char*>(gpr_malloc(frame->allocated_size)); in tsi_fake_frame_decode()
/external/rust/crates/grpcio-sys/grpc/src/core/tsi/
Dfake_transport_security.cc48 size_t allocated_size; member
155 frame->allocated_size = frame->size; in tsi_fake_frame_ensure_size()
157 static_cast<unsigned char*>(gpr_malloc(frame->allocated_size)); in tsi_fake_frame_ensure_size()
158 } else if (frame->size > frame->allocated_size) { in tsi_fake_frame_ensure_size()
162 frame->allocated_size = frame->size; in tsi_fake_frame_ensure_size()
178 frame->allocated_size = TSI_FAKE_FRAME_INITIAL_ALLOCATED_SIZE; in tsi_fake_frame_decode()
180 static_cast<unsigned char*>(gpr_malloc(frame->allocated_size)); in tsi_fake_frame_decode()
/external/clang/lib/Sema/
DAttributeList.cpp34 size_t AttributeList::allocated_size() const { in allocated_size() function in AttributeList
76 size_t size = cur->allocated_size(); in reclaimPool()
/external/llvm-project/clang/lib/Sema/
DParsedAttr.cpp39 size_t ParsedAttr::allocated_size() const { in allocated_size() function in ParsedAttr
80 size_t size = Attr->allocated_size(); in deallocate()
/external/tensorflow/tensorflow/core/framework/
Dtracking_allocator.cc92 allocated_bytes = (*itr).second.allocated_size; in DeallocateRaw()
134 return (*it).second.allocated_size; in AllocatedSize()
Dtracking_allocator.h123 size_t allocated_size; member
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_malloc_mac.inc59 uptr allocated_size = RoundUpTo(sizeof(sanitizer_zone), page_size);
60 COMMON_MALLOC_MEMALIGN(page_size, allocated_size);
67 mprotect(new_zone, allocated_size, PROT_READ);
77 uptr allocated_size = RoundUpTo(sizeof(sanitizer_zone), page_size);
78 mprotect(zone, allocated_size, PROT_READ | PROT_WRITE);
/external/llvm-project/compiler-rt/lib/asan/
Dasan_allocator.cpp361 uptr allocated_size = allocator.GetActuallyAllocatedSize((void *)chunk); in RePoisonChunk() local
366 uptr chunk_end = chunk + allocated_size; in RePoisonChunk()
380 PoisonShadow(chunk, allocated_size, kAsanHeapLeftRedzoneMagic); in RePoisonChunk()
555 uptr allocated_size = allocator.GetActuallyAllocatedSize(allocated); in Allocate() local
556 PoisonShadow((uptr)allocated, allocated_size, kAsanHeapLeftRedzoneMagic); in Allocate()
1205 uptr allocated_size = instance.AllocationSize(ptr); in __sanitizer_get_allocated_size() local
1207 if (allocated_size == 0) { in __sanitizer_get_allocated_size()
1211 return allocated_size; in __sanitizer_get_allocated_size()
/external/llvm-project/openmp/runtime/src/
Dkmp_stats.h651 int allocated_size; variable
659 allocated_size = INIT_SIZE; in kmp_stats_event_vector()
667 if (internal_size == allocated_size) { in push_back()
669 sizeof(kmp_stats_event) * allocated_size * 2); in push_back()
674 allocated_size *= 2; in push_back()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_bfc_allocator_test.cc473 size_t allocated_size = initial_ptrs_allocated_sizes[2 * i] + in TestBinDebugInfo() local
475 EXPECT_EQ(bin_info.total_bytes_in_use, allocated_size); in TestBinDebugInfo()
476 EXPECT_EQ(bin_summary.total_bytes_in_use(), allocated_size); in TestBinDebugInfo()
477 EXPECT_EQ(bin_info.total_bytes_in_bin, allocated_size); in TestBinDebugInfo()
478 EXPECT_EQ(bin_summary.total_bytes_in_bin(), allocated_size); in TestBinDebugInfo()
/external/pdfium/third_party/libtiff/
Dtif_close.c97 if (tif->tif_fieldscompat[i].allocated_size) in TIFFCleanup()
Dtif_dir.h277 …uint32 allocated_size; /* 0 if array is constant, other if modified by future definition exte… member
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_malloc_mac.inc38 uptr allocated_size = RoundUpTo(sizeof(sanitizer_zone), page_size);
39 COMMON_MALLOC_MEMALIGN(page_size, allocated_size);
47 mprotect(new_zone, allocated_size, PROT_READ);
/external/compiler-rt/lib/asan/
Dasan_allocator.cc384 uptr allocated_size = allocator.GetActuallyAllocatedSize(allocated); in Allocate() local
385 PoisonShadow((uptr)allocated, allocated_size, kAsanHeapLeftRedzoneMagic); in Allocate()
902 uptr allocated_size = instance.AllocationSize(ptr); in __sanitizer_get_allocated_size() local
904 if (allocated_size == 0) { in __sanitizer_get_allocated_size()
908 return allocated_size; in __sanitizer_get_allocated_size()
/external/deqp/external/openglcts/modules/gl/
Dgl4cDirectStateAccessXFBTests.cpp675 glw::GLint allocated_size = -1; in prepareObjects() local
677 gl.getBufferParameteriv(GL_TRANSFORM_FEEDBACK_BUFFER, GL_BUFFER_SIZE, &allocated_size); in prepareObjects()
680 if (allocated_size != (glw::GLint)s_bo_size) in prepareObjects()
696 allocated_size = -1; in prepareObjects()
698 gl.getBufferParameteriv(GL_TRANSFORM_FEEDBACK_BUFFER, GL_BUFFER_SIZE, &allocated_size); in prepareObjects()
701 if (allocated_size != (glw::GLint)s_bo_size) in prepareObjects()
/external/libcxx/test/support/
Dcontrolled_allocators.hpp69 std::size_t allocated_size; member
103 allocated_size += s; in countAlloc()

12