Home
last modified time | relevance | path

Searched refs:requested_size (Results 1 – 22 of 22) sorted by relevance

/external/compiler-rt/lib/lsan/
Dlsan_allocator.cc31 uptr requested_size : 54; member
77 m->requested_size = size; in RegisterAllocation()
134 return m->requested_size; in GetMallocUsableSize()
163 if (addr < chunk + m->requested_size) in PointsIntoChunk()
165 if (IsSpecialCaseOfOperatorNew0(chunk, m->requested_size, addr)) in PointsIntoChunk()
191 uptr LsanMetadata::requested_size() const { in requested_size() function in __lsan::LsanMetadata
192 return reinterpret_cast<ChunkMetadata *>(metadata_)->requested_size; in requested_size()
208 if (m->allocated && (uptr)p < (uptr)chunk + m->requested_size) { in IgnoreObjectLocked()
Dlsan_common.cc170 pp, p, chunk, chunk + m.requested_size(), m.requested_size()); in ScanRangeForPointers()
176 chunk, chunk + m.requested_size(), m.requested_size()); in ScanRangeForPointers()
311 ScanRangeForPointers(next_chunk, next_chunk + m.requested_size(), frontier, in FloodFillTag()
322 ScanRangeForPointers(chunk, chunk + m.requested_size(), in MarkIndirectlyLeakedCb()
335 chunk, chunk + m.requested_size(), m.requested_size()); in CollectIgnoredCb()
397 leak_report->AddLeakedChunk(chunk, stack_trace_id, m.requested_size(), in CollectLeaksCb()
Dlsan_common.h181 uptr requested_size() const;
/external/compiler-rt/lib/msan/
Dmsan_allocator.cc26 uptr requested_size; member
129 meta->requested_size = size; in MsanAllocate()
148 uptr size = meta->requested_size; in MsanDeallocate()
149 meta->requested_size = 0; in MsanDeallocate()
186 uptr old_size = meta->requested_size; in MsanReallocate()
190 meta->requested_size = new_size; in MsanReallocate()
217 return b->requested_size; in AllocationSize()
/external/v8/src/zone/
Daccounting-allocator.cc126 Segment* AccountingAllocator::GetSegmentFromPool(size_t requested_size) { in GetSegmentFromPool() argument
127 if (requested_size > (1 << kMaxSegmentSizePower)) { in GetSegmentFromPool()
132 while (requested_size > (static_cast<size_t>(1) << power)) power++; in GetSegmentFromPool()
154 DCHECK_GE(segment->size(), requested_size); in GetSegmentFromPool()
Dzone.cc115 Segment* Zone::NewSegment(size_t requested_size) { in NewSegment() argument
116 Segment* result = allocator_->GetSegment(requested_size); in NewSegment()
118 DCHECK_GE(result->size(), requested_size); in NewSegment()
Daccounting-allocator.h68 Segment* GetSegmentFromPool(size_t requested_size);
Dzone.h100 inline Segment* NewSegment(size_t requested_size);
/external/valgrind/coregrind/m_ume/
Dmacho.c404 handle_lcmain ( vki_size_t requested_size, in handle_lcmain() argument
407 if (requested_size == 0) { in handle_lcmain()
408 requested_size = default_stack_size(); in handle_lcmain()
410 requested_size = VG_PGROUNDUP(requested_size); in handle_lcmain()
413 requested_size += HACK; in handle_lcmain()
415 SysRes res = VG_(am_mmap_anon_float_client)(requested_size, in handle_lcmain()
417 check_mmap_float(res, requested_size, "handle_lcmain"); in handle_lcmain()
420 out_info->stack_end = out_info->stack_start + requested_size - 1; in handle_lcmain()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_bfc_allocator_test.cc389 const size_t requested_size = 2 * (256 << i); in TestBinDebugInfo() local
390 EXPECT_EQ(requested_size, a.RequestedSize(initial_ptrs[2 * i]) + in TestBinDebugInfo()
396 EXPECT_EQ(bin_info.total_requested_bytes_in_use, requested_size); in TestBinDebugInfo()
426 size_t requested_size = 256 << i; in TestBinDebugInfo() local
427 EXPECT_EQ(requested_size, a.RequestedSize(initial_ptrs[2 * i])); in TestBinDebugInfo()
432 EXPECT_EQ(bin_info.total_requested_bytes_in_use, requested_size); in TestBinDebugInfo()
/external/tensorflow/tensorflow/core/common_runtime/
Dbfc_allocator.cc314 chunk->requested_size = num_bytes; in FindChunkPtr()
530 return c->requested_size; in RequestedSize()
604 size_t wasted = c->size - c->requested_size; in RenderOccupancy()
607 region_offset + c->requested_size, region.ptr(), c->ptr, in RenderOccupancy()
612 region.ptr(), c->ptr, c->requested_size, '*'); in RenderOccupancy()
708 bin_info.total_requested_bytes_in_use += c->requested_size; in get_bin_debug_info()
Dbfc_allocator.h103 size_t requested_size = 0; member
132 " | Requested Size: ", strings::HumanReadableNumBytes(requested_size), in DebugString()
/external/libchrome/base/memory/
Dshared_memory_unittest.cc159 EXPECT_EQ(memory1.requested_size(), kDataSize); in TEST()
183 EXPECT_EQ(memory2.requested_size(), 0U); in TEST()
495 EXPECT_TRUE(shared_memory.Map(shared_memory.requested_size())); in TEST()
497 EXPECT_EQ(0, mprotect(shared_memory.memory(), shared_memory.requested_size(), in TEST()
Dshared_memory.h184 size_t requested_size() const { return requested_size_; } in requested_size() function
/external/pdfium/third_party/base/allocator/partition_allocator/
Dpartition_alloc.h711 size_t requested_size = size; in PartitionAlloc()
719 PartitionAllocHooks::AllocationHookIfEnabled(result, requested_size, in PartitionAlloc()
795 size_t requested_size = size; in PartitionAllocGenericFlags()
803 PartitionAllocHooks::AllocationHookIfEnabled(ret, requested_size, type_name); in PartitionAllocGenericFlags()
/external/tensorflow/tensorflow/core/framework/
Dtracking_allocator.h124 size_t requested_size; member
Dtracking_allocator.cc121 return (*it).second.requested_size; in RequestedSize()
/external/python/cpython3/Objects/
Dbytearrayobject.c168 PyByteArray_Resize(PyObject *self, Py_ssize_t requested_size) in PyByteArray_Resize() argument
176 size_t size = (size_t) requested_size; in PyByteArray_Resize()
181 assert(requested_size >= 0); in PyByteArray_Resize()
183 if (requested_size == Py_SIZE(self)) { in PyByteArray_Resize()
227 Py_MIN(requested_size, Py_SIZE(self))); in PyByteArray_Resize()
/external/v8/src/heap/
Dspaces.cc204 Address CodeRange::AllocateRawMemory(const size_t requested_size, in AllocateRawMemory() argument
210 requested_size - 2 * MemoryAllocator::CodePageGuardSize()); in AllocateRawMemory()
212 if (!ReserveBlock(requested_size, &current)) { in AllocateRawMemory()
257 bool CodeRange::ReserveBlock(const size_t requested_size, FreeBlock* block) { in ReserveBlock() argument
262 requested_size > allocation_list_[current_allocation_block_index_].size) { in ReserveBlock()
264 if (!GetNextAllocationBlock(requested_size)) return false; in ReserveBlock()
267 size_t aligned_requested = RoundUp(requested_size, MemoryChunk::kAlignment); in ReserveBlock()
Dspaces.h959 bool SetUp(size_t requested_size);
979 MUST_USE_RESULT Address AllocateRawMemory(const size_t requested_size,
1017 bool ReserveBlock(const size_t requested_size, FreeBlock* block);
/external/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_cs.c791 unsigned requested_size = rcs->prev_dw + rcs->current.cdw + dw; in amdgpu_cs_check_space() local
797 if (requested_size > amdgpu_ib_max_submit_dwords(ib->ib_type)) in amdgpu_cs_check_space()
800 ib->max_ib_size = MAX2(ib->max_ib_size, requested_size); in amdgpu_cs_check_space()
/external/compiler-rt/lib/asan/
Dasan_allocator.cc856 uptr LsanMetadata::requested_size() const { in requested_size() function in __lsan::LsanMetadata