Home
last modified time | relevance | path

Searched refs:num_bytes (Results 1 – 25 of 26) sorted by relevance

12

/art/runtime/gc/space/
Dbump_pointer_space-inl.h27 inline mirror::Object* BumpPointerSpace::Alloc(Thread*, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
30 num_bytes = RoundUp(num_bytes, kAlignment); in Alloc()
31 mirror::Object* ret = AllocNonvirtual(num_bytes); in Alloc()
33 *bytes_allocated = num_bytes; in Alloc()
35 *usable_size = num_bytes; in Alloc()
37 *bytes_tl_bulk_allocated = num_bytes; in Alloc()
42 inline mirror::Object* BumpPointerSpace::AllocThreadUnsafe(Thread* self, size_t num_bytes, in AllocThreadUnsafe() argument
47 num_bytes = RoundUp(num_bytes, kAlignment); in AllocThreadUnsafe()
49 if (end + num_bytes > growth_end_) { in AllocThreadUnsafe()
53 end_.StoreRelaxed(end + num_bytes); in AllocThreadUnsafe()
[all …]
Dregion_space-inl.h26 inline mirror::Object* RegionSpace::Alloc(Thread*, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
29 num_bytes = RoundUp(num_bytes, kAlignment); in Alloc()
30 return AllocNonvirtual<false>(num_bytes, bytes_allocated, usable_size, in Alloc()
34 inline mirror::Object* RegionSpace::AllocThreadUnsafe(Thread* self, size_t num_bytes, in AllocThreadUnsafe() argument
39 return Alloc(self, num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocThreadUnsafe()
43 inline mirror::Object* RegionSpace::AllocNonvirtual(size_t num_bytes, size_t* bytes_allocated, in AllocNonvirtual() argument
46 DCHECK_ALIGNED(num_bytes, kAlignment); in AllocNonvirtual()
48 if (LIKELY(num_bytes <= kRegionSize)) { in AllocNonvirtual()
51 obj = current_region_->Alloc(num_bytes, bytes_allocated, usable_size, in AllocNonvirtual()
55 obj = evac_region_->Alloc(num_bytes, bytes_allocated, usable_size, in AllocNonvirtual()
[all …]
Drosalloc_space.h49 mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated,
52 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
54 return AllocNonvirtual(self, num_bytes, bytes_allocated, usable_size, in Alloc()
57 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated, in AllocThreadUnsafe() argument
60 return AllocNonvirtualThreadUnsafe(self, num_bytes, bytes_allocated, usable_size, in AllocThreadUnsafe()
71 mirror::Object* AllocNonvirtual(Thread* self, size_t num_bytes, size_t* bytes_allocated, in AllocNonvirtual() argument
74 return AllocCommon(self, num_bytes, bytes_allocated, usable_size, in AllocNonvirtual()
77 mirror::Object* AllocNonvirtualThreadUnsafe(Thread* self, size_t num_bytes, in AllocNonvirtualThreadUnsafe() argument
81 return AllocCommon<false>(self, num_bytes, bytes_allocated, usable_size, in AllocNonvirtualThreadUnsafe()
87 ALWAYS_INLINE bool CanAllocThreadLocal(Thread* self, size_t num_bytes);
[all …]
Dmemory_tool_malloc_space-inl.h31 inline mirror::Object* AdjustForValgrind(void* obj_with_rdz, size_t num_bytes, in AdjustForValgrind() argument
47 *usable_size_out = num_bytes; in AdjustForValgrind()
61 MEMORY_TOOL_MAKE_DEFINED(result, num_bytes); in AdjustForValgrind()
67 MEMORY_TOOL_MAKE_NOACCESS(reinterpret_cast<uint8_t*>(result) + num_bytes, in AdjustForValgrind()
68 usable_size - (num_bytes + kMemoryToolRedZoneBytes)); in AdjustForValgrind()
88 Thread* self, size_t num_bytes, size_t* bytes_allocated_out, size_t* usable_size_out, in AllocWithGrowth() argument
93 void* obj_with_rdz = S::AllocWithGrowth(self, num_bytes + 2 * kMemoryToolRedZoneBytes, in AllocWithGrowth()
101 obj_with_rdz, num_bytes, in AllocWithGrowth()
117 Thread* self, size_t num_bytes, size_t* bytes_allocated_out, size_t* usable_size_out, in Alloc() argument
122 void* obj_with_rdz = S::Alloc(self, num_bytes + 2 * kMemoryToolRedZoneBytes, in Alloc()
[all …]
Drosalloc_space-inl.h64 inline mirror::Object* RosAllocSpace::AllocCommon(Thread* self, size_t num_bytes, in AllocCommon() argument
74 rosalloc_->Alloc<kThreadSafe>(self, num_bytes, &rosalloc_bytes_allocated, in AllocCommon()
94 inline bool RosAllocSpace::CanAllocThreadLocal(Thread* self, size_t num_bytes) { in CanAllocThreadLocal() argument
95 return rosalloc_->CanAllocFromThreadLocalRun(self, num_bytes); in CanAllocThreadLocal()
98 inline mirror::Object* RosAllocSpace::AllocThreadLocal(Thread* self, size_t num_bytes, in AllocThreadLocal() argument
102 rosalloc_->AllocFromThreadLocalRun(self, num_bytes, bytes_allocated)); in AllocThreadLocal()
105 inline size_t RosAllocSpace::MaxBytesBulkAllocatedForNonvirtual(size_t num_bytes) { in MaxBytesBulkAllocatedForNonvirtual() argument
106 return rosalloc_->MaxBytesBulkAllocatedFor(num_bytes); in MaxBytesBulkAllocatedForNonvirtual()
Ddlmalloc_space-inl.h28 inline mirror::Object* DlMallocSpace::AllocNonvirtual(Thread* self, size_t num_bytes, in AllocNonvirtual() argument
35 obj = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size, in AllocNonvirtual()
40 memset(obj, 0, num_bytes); in AllocNonvirtual()
55 Thread* /*self*/, size_t num_bytes, in AllocWithoutGrowthLocked() argument
59 mirror::Object* result = reinterpret_cast<mirror::Object*>(mspace_malloc(mspace_, num_bytes)); in AllocWithoutGrowthLocked()
Ddlmalloc_space.h50 virtual mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated,
55 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
58 return AllocNonvirtual(self, num_bytes, bytes_allocated, usable_size, in Alloc()
74 size_t MaxBytesBulkAllocatedFor(size_t num_bytes) OVERRIDE { in MaxBytesBulkAllocatedFor() argument
75 return num_bytes; in MaxBytesBulkAllocatedFor()
87 mirror::Object* AllocNonvirtual(Thread* self, size_t num_bytes, size_t* bytes_allocated,
147 mirror::Object* AllocWithoutGrowthLocked(Thread* self, size_t num_bytes, size_t* bytes_allocated,
Dmemory_tool_malloc_space.h34 mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated,
37 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
39 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated,
53 size_t MaxBytesBulkAllocatedFor(size_t num_bytes) OVERRIDE;
Dbump_pointer_space.h36 typedef void(*WalkCallback)(void *start, void *end, size_t num_bytes, void* callback_arg);
49 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
52 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated,
56 mirror::Object* AllocNonvirtual(size_t num_bytes);
57 mirror::Object* AllocNonvirtualWithoutAccounting(size_t num_bytes);
Dmalloc_space.h49 typedef void(*WalkCallback)(void *start, void *end, size_t num_bytes, void* callback_arg);
56 virtual mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes,
60 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
73 virtual size_t MaxBytesBulkAllocatedFor(size_t num_bytes) = 0;
Dregion_space.h32 typedef void(*WalkCallback)(void *start, void *end, size_t num_bytes, void* callback_arg);
44 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
48 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated,
53 ALWAYS_INLINE mirror::Object* AllocNonvirtual(size_t num_bytes, size_t* bytes_allocated,
59 mirror::Object* AllocLarge(size_t num_bytes, size_t* bytes_allocated, size_t* usable_size,
275 ALWAYS_INLINE mirror::Object* Alloc(size_t num_bytes, size_t* bytes_allocated,
454 void RecordThreadLocalAllocations(size_t num_objects, size_t num_bytes) { in RecordThreadLocalAllocations() argument
459 top_ = begin_ + num_bytes; in RecordThreadLocalAllocations()
Drosalloc_space.cc154 mirror::Object* RosAllocSpace::AllocWithGrowth(Thread* self, size_t num_bytes, in AllocWithGrowth() argument
164 result = AllocCommon(self, num_bytes, bytes_allocated, usable_size, in AllocWithGrowth()
261 void RosAllocSpace::Walk(void(*callback)(void *start, void *end, size_t num_bytes, void* callback_a… in Walk() argument
302 void (*callback)(void *start, void *end, size_t num_bytes, void* callback_arg), in InspectAllRosAllocWithSuspendAll() argument
315 void RosAllocSpace::InspectAllRosAlloc(void (*callback)(void *start, void *end, size_t num_bytes, v… in InspectAllRosAlloc() argument
Dlarge_object_space.cc52 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
56 LargeObjectMapSpace::Alloc(self, num_bytes + kMemoryToolRedZoneBytes * 2, bytes_allocated, in Alloc()
62 reinterpret_cast<uint8_t*>(object_without_rdz) + num_bytes, in Alloc()
65 *usable_size = num_bytes; // Since we have redzones, shrink the usable size. in Alloc()
133 mirror::Object* LargeObjectMapSpace::Alloc(Thread* self, size_t num_bytes, in Alloc() argument
137 MemMap* mem_map = MemMap::MapAnonymous("large object space allocation", nullptr, num_bytes, in Alloc()
479 mirror::Object* FreeListSpace::Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
482 const size_t allocation_size = RoundUp(num_bytes, kAlignment); in Alloc()
Ddlmalloc_space.cc128 mirror::Object* DlMallocSpace::AllocWithGrowth(Thread* self, size_t num_bytes, in AllocWithGrowth() argument
138 result = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size, in AllocWithGrowth()
146 memset(result, 0, num_bytes); in AllocWithGrowth()
234 void DlMallocSpace::Walk(void(*callback)(void *start, void *end, size_t num_bytes, void* callback_a… in Walk() argument
Dspace.h215 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
219 virtual mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated, in AllocThreadUnsafe() argument
223 return Alloc(self, num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocThreadUnsafe()
Dzygote_space.h48 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
Dlarge_object_space.h134 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
168 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
/art/compiler/debug/dwarf/
Dexpression.h75 void WriteOpPiece(uint32_t num_bytes) { in WriteOpPiece() argument
77 PushUleb128(num_bytes); in WriteOpPiece()
84 void WriteOpDerefSize(uint8_t num_bytes) { in WriteOpDerefSize() argument
86 PushUint8(num_bytes); in WriteOpDerefSize()
Dwriter.h117 void PushData(const uint8_t* ptr, size_t num_bytes) { in PushData() argument
118 data_->insert(data_->end(), ptr, ptr + num_bytes); in PushData()
121 void PushData(const char* ptr, size_t num_bytes) { in PushData() argument
122 data_->insert(data_->end(), ptr, ptr + num_bytes); in PushData()
Ddebug_info_entry_writer.h95 void WriteBlock(Attribute attrib, const uint8_t* ptr, size_t num_bytes) { in WriteBlock() argument
97 this->PushUleb128(num_bytes); in WriteBlock()
98 this->PushData(ptr, num_bytes); in WriteBlock()
/art/runtime/
Dart_field.cc37 void ArtField::SetOffset(MemberOffset num_bytes) { in SetOffset() argument
43 DCHECK_ALIGNED(num_bytes.Uint32Value(), 8); in SetOffset()
47 offset_ = num_bytes.Uint32Value(); in SetOffset()
Dart_field.h86 void SetOffset(MemberOffset num_bytes) SHARED_REQUIRES(Locks::mutator_lock_);
/art/runtime/mirror/
Dobject.cc76 size_t num_bytes) { in CopyObject() argument
82 memcpy(dst_bytes + offset, src_bytes + offset, num_bytes - offset); in CopyObject()
110 CopyObjectVisitor(Thread* self, Handle<Object>* orig, size_t num_bytes) in CopyObjectVisitor() argument
111 : self_(self), orig_(orig), num_bytes_(num_bytes) { in CopyObjectVisitor()
131 size_t num_bytes = SizeOf(); in Clone() local
135 CopyObjectVisitor visitor(self, &this_object, num_bytes); in Clone()
137 copy = heap->AllocObject<true>(self, GetClass(), num_bytes, visitor); in Clone()
139 copy = heap->AllocNonMovableObject<true>(self, GetClass(), num_bytes, visitor); in Clone()
/art/runtime/gc/collector/
Dgarbage_collector.h47 ObjectBytePair(uint64_t num_objects = 0, int64_t num_bytes = 0)
48 : objects(num_objects), bytes(num_bytes) {} in objects()
/art/runtime/gc/
Dheap.h194 size_t num_bytes, in AllocObject() argument
200 self, klass, num_bytes, GetCurrentAllocator(), pre_fence_visitor); in AllocObject()
206 size_t num_bytes, in AllocNonMovableObject() argument
212 self, klass, num_bytes, GetCurrentNonMovingAllocator(), pre_fence_visitor); in AllocNonMovableObject()
858 size_t num_bytes,

12