/art/runtime/gc/space/ |
D | bump_pointer_space-inl.h | 27 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 …]
|
D | region_space-inl.h | 26 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 …]
|
D | rosalloc_space.h | 49 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 …]
|
D | memory_tool_malloc_space-inl.h | 31 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 …]
|
D | rosalloc_space-inl.h | 64 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()
|
D | dlmalloc_space-inl.h | 28 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()
|
D | dlmalloc_space.h | 50 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,
|
D | memory_tool_malloc_space.h | 34 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;
|
D | bump_pointer_space.h | 36 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);
|
D | malloc_space.h | 49 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;
|
D | region_space.h | 32 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()
|
D | rosalloc_space.cc | 154 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
|
D | large_object_space.cc | 52 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()
|
D | dlmalloc_space.cc | 128 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
|
D | space.h | 215 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()
|
D | zygote_space.h | 48 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
|
D | large_object_space.h | 134 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/ |
D | expression.h | 75 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()
|
D | writer.h | 117 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()
|
D | debug_info_entry_writer.h | 95 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/ |
D | art_field.cc | 37 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()
|
D | art_field.h | 86 void SetOffset(MemberOffset num_bytes) SHARED_REQUIRES(Locks::mutator_lock_);
|
/art/runtime/mirror/ |
D | object.cc | 76 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/ |
D | garbage_collector.h | 47 ObjectBytePair(uint64_t num_objects = 0, int64_t num_bytes = 0) 48 : objects(num_objects), bytes(num_bytes) {} in objects()
|
/art/runtime/gc/ |
D | heap.h | 194 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,
|