Home
last modified time | relevance | path

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

/art/runtime/gc/space/
Dbump_pointer_space-inl.h26 inline mirror::Object* BumpPointerSpace::Alloc(Thread*, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
28 num_bytes = RoundUp(num_bytes, kAlignment); in Alloc()
29 mirror::Object* ret = AllocNonvirtual(num_bytes); in Alloc()
31 *bytes_allocated = num_bytes; in Alloc()
33 *usable_size = num_bytes; in Alloc()
39 inline mirror::Object* BumpPointerSpace::AllocThreadUnsafe(Thread* self, size_t num_bytes, in AllocThreadUnsafe() argument
43 num_bytes = RoundUp(num_bytes, kAlignment); in AllocThreadUnsafe()
45 if (end + num_bytes > growth_end_) { in AllocThreadUnsafe()
49 end_.StoreRelaxed(end + num_bytes); in AllocThreadUnsafe()
50 *bytes_allocated = num_bytes; in AllocThreadUnsafe()
[all …]
Drosalloc_space.h49 mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated,
51 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
53 return AllocNonvirtual(self, num_bytes, bytes_allocated, usable_size); in Alloc()
55 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated, in AllocThreadUnsafe() argument
58 return AllocNonvirtualThreadUnsafe(self, num_bytes, bytes_allocated, usable_size); in AllocThreadUnsafe()
68 mirror::Object* AllocNonvirtual(Thread* self, size_t num_bytes, size_t* bytes_allocated, in AllocNonvirtual() argument
71 return AllocCommon(self, num_bytes, bytes_allocated, usable_size); in AllocNonvirtual()
73 mirror::Object* AllocNonvirtualThreadUnsafe(Thread* self, size_t num_bytes, in AllocNonvirtualThreadUnsafe() argument
76 return AllocCommon<false>(self, num_bytes, bytes_allocated, usable_size); in AllocNonvirtualThreadUnsafe()
134 mirror::Object* AllocCommon(Thread* self, size_t num_bytes, size_t* bytes_allocated,
[all …]
Ddlmalloc_space-inl.h28 inline mirror::Object* DlMallocSpace::AllocNonvirtual(Thread* self, size_t num_bytes, in AllocNonvirtual() argument
34 obj = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size); in AllocNonvirtual()
38 memset(obj, 0, num_bytes); in AllocNonvirtual()
52 inline mirror::Object* DlMallocSpace::AllocWithoutGrowthLocked(Thread* /*self*/, size_t num_bytes, in AllocWithoutGrowthLocked() argument
55 mirror::Object* result = reinterpret_cast<mirror::Object*>(mspace_malloc(mspace_, num_bytes)); in AllocWithoutGrowthLocked()
Dvalgrind_malloc_space-inl.h33 mirror::Object* ValgrindMallocSpace<S, A>::AllocWithGrowth(Thread* self, size_t num_bytes, in AllocWithGrowth() argument
36 void* obj_with_rdz = S::AllocWithGrowth(self, num_bytes + 2 * kValgrindRedZoneBytes, in AllocWithGrowth()
45 VALGRIND_MAKE_MEM_NOACCESS(reinterpret_cast<byte*>(result) + num_bytes, kValgrindRedZoneBytes); in AllocWithGrowth()
50 mirror::Object* ValgrindMallocSpace<S, A>::Alloc(Thread* self, size_t num_bytes, in Alloc() argument
53 void* obj_with_rdz = S::Alloc(self, num_bytes + 2 * kValgrindRedZoneBytes, bytes_allocated, in Alloc()
62 VALGRIND_MAKE_MEM_NOACCESS(reinterpret_cast<byte*>(result) + num_bytes, kValgrindRedZoneBytes); in Alloc()
Ddlmalloc_space.h50 virtual mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated,
53 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
55 return AllocNonvirtual(self, num_bytes, bytes_allocated, usable_size); in Alloc()
77 mirror::Object* AllocNonvirtual(Thread* self, size_t num_bytes, size_t* bytes_allocated,
136 mirror::Object* AllocWithoutGrowthLocked(Thread* self, size_t num_bytes, size_t* bytes_allocated,
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);
Dvalgrind_malloc_space.h33 mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated,
35 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
Drosalloc_space-inl.h50 inline mirror::Object* RosAllocSpace::AllocCommon(Thread* self, size_t num_bytes, in AllocCommon() argument
57 rosalloc_->Alloc<kThreadSafe>(self, num_bytes, &rosalloc_size)); in AllocCommon()
Dmalloc_space.h50 typedef void(*WalkCallback)(void *start, void *end, size_t num_bytes, void* callback_arg);
57 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,
Dlarge_object_space.cc40 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
43 LargeObjectMapSpace::Alloc(self, num_bytes + kValgrindRedZoneBytes * 2, bytes_allocated, in Alloc()
48 VALGRIND_MAKE_MEM_NOACCESS(reinterpret_cast<byte*>(object_without_rdz) + num_bytes, in Alloc()
51 *usable_size = num_bytes; // Since we have redzones, shrink the usable size. in Alloc()
110 mirror::Object* LargeObjectMapSpace::Alloc(Thread* self, size_t num_bytes, in Alloc() argument
113 MemMap* mem_map = MemMap::MapAnonymous("large object space allocation", NULL, num_bytes, in Alloc()
409 mirror::Object* FreeListSpace::Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
412 const size_t allocation_size = RoundUp(num_bytes, kAlignment); in Alloc()
Drosalloc_space.cc146 mirror::Object* RosAllocSpace::AllocWithGrowth(Thread* self, size_t num_bytes, in AllocWithGrowth() argument
155 result = AllocCommon(self, num_bytes, bytes_allocated, usable_size); in AllocWithGrowth()
250 void RosAllocSpace::Walk(void(*callback)(void *start, void *end, size_t num_bytes, void* callback_a… in Walk() argument
291 void (*callback)(void *start, void *end, size_t num_bytes, void* callback_arg), in InspectAllRosAllocWithSuspendAll() argument
308 void RosAllocSpace::InspectAllRosAlloc(void (*callback)(void *start, void *end, size_t num_bytes, v… in InspectAllRosAlloc() argument
Ddlmalloc_space.cc128 mirror::Object* DlMallocSpace::AllocWithGrowth(Thread* self, size_t num_bytes, in AllocWithGrowth() argument
137 result = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size); in AllocWithGrowth()
144 memset(result, 0, num_bytes); in AllocWithGrowth()
247 void DlMallocSpace::Walk(void(*callback)(void *start, void *end, size_t num_bytes, void* callback_a… in Walk() argument
Dspace.h199 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
203 virtual mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated, in AllocThreadUnsafe() argument
206 return Alloc(self, num_bytes, bytes_allocated, usable_size); in AllocThreadUnsafe()
Dlarge_object_space.h120 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
149 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
Dzygote_space.h48 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
Dzygote_space.cc78 mirror::Object* ZygoteSpace::Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
/art/runtime/mirror/
Dobject.cc71 size_t num_bytes) { in CopyObject() argument
77 memcpy(dst_bytes + offset, src_bytes + offset, num_bytes - offset); in CopyObject()
105 explicit CopyObjectVisitor(Thread* self, Handle<Object>* orig, size_t num_bytes) in CopyObjectVisitor() argument
106 : self_(self), orig_(orig), num_bytes_(num_bytes) { in CopyObjectVisitor()
127 size_t num_bytes = SizeOf(); in Clone() local
131 CopyObjectVisitor visitor(self, &this_object, num_bytes); in Clone()
133 copy = heap->AllocObject<true>(self, GetClass(), num_bytes, visitor); in Clone()
135 copy = heap->AllocNonMovableObject<true>(self, GetClass(), num_bytes, visitor); in Clone()
Dart_field.cc45 void ArtField::SetOffset(MemberOffset num_bytes) { in SetOffset() argument
51 DCHECK_ALIGNED(num_bytes.Uint32Value(), 8); in SetOffset()
55 SetField32<false>(OFFSET_OF_OBJECT_MEMBER(ArtField, offset_), num_bytes.Uint32Value()); in SetOffset()
Dart_field.h95 void SetOffset(MemberOffset num_bytes) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
Dobject.h400 size_t num_bytes)
/art/runtime/gc/collector/
Dgarbage_collector.h37 ObjectBytePair(uint64_t num_objects = 0, int64_t num_bytes = 0)
38 : objects(num_objects), bytes(num_bytes) {} in objects()
/art/runtime/gc/
Dheap.h175 mirror::Object* AllocObject(Thread* self, mirror::Class* klass, size_t num_bytes, in AllocObject() argument
178 return AllocObjectWithAllocator<kInstrumented, true>(self, klass, num_bytes, in AllocObject()
184 mirror::Object* AllocNonMovableObject(Thread* self, mirror::Class* klass, size_t num_bytes, in AllocNonMovableObject() argument
187 return AllocObjectWithAllocator<kInstrumented, true>(self, klass, num_bytes, in AllocNonMovableObject()
652 mirror::Object* AllocateInternalWithGc(Thread* self, AllocatorType allocator, size_t num_bytes,