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

/art/runtime/gc/space/
H A Dbump_pointer_space-inl.h26 inline mirror::Object* BumpPointerSpace::Alloc(Thread*, size_t num_bytes, size_t* bytes_allocated, argument
28 num_bytes = RoundUp(num_bytes, kAlignment);
29 mirror::Object* ret = AllocNonvirtual(num_bytes);
31 *bytes_allocated = num_bytes;
33 *usable_size = num_bytes;
39 inline mirror::Object* BumpPointerSpace::AllocThreadUnsafe(Thread* self, size_t num_bytes, argument
43 num_bytes = RoundUp(num_bytes, kAlignment);
45 if (end + num_bytes > growth_end
60 AllocNonvirtualWithoutAccounting(size_t num_bytes) argument
75 AllocNonvirtual(size_t num_bytes) argument
86 size_t num_bytes = obj->SizeOf(); local
[all...]
H A Ddlmalloc_space-inl.h28 inline mirror::Object* DlMallocSpace::AllocNonvirtual(Thread* self, size_t num_bytes, argument
34 obj = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size);
38 memset(obj, 0, num_bytes);
52 inline mirror::Object* DlMallocSpace::AllocWithoutGrowthLocked(Thread* /*self*/, size_t num_bytes, argument
55 mirror::Object* result = reinterpret_cast<mirror::Object*>(mspace_malloc(mspace_, num_bytes));
H A 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,
53 return AllocNonvirtual(self, num_bytes, bytes_allocated, usable_size);
55 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated,
58 return AllocNonvirtualThreadUnsafe(self, num_bytes, bytes_allocated, usable_size);
68 mirror::Object* AllocNonvirtual(Thread* self, size_t num_bytes, size_t* bytes_allocated, argument
71 return AllocCommon(self, num_bytes, bytes_allocated, usable_size);
73 mirror::Object* AllocNonvirtualThreadUnsafe(Thread* self, size_t num_bytes, argument
76 return AllocCommon<false>(self, num_bytes, bytes_allocated, usable_size);
134 mirror::Object* AllocCommon(Thread* self, size_t num_bytes, size_
[all...]
H A Dvalgrind_malloc_space-inl.h33 mirror::Object* ValgrindMallocSpace<S, A>::AllocWithGrowth(Thread* self, size_t num_bytes, argument
36 void* obj_with_rdz = S::AllocWithGrowth(self, num_bytes + 2 * kValgrindRedZoneBytes,
45 VALGRIND_MAKE_MEM_NOACCESS(reinterpret_cast<byte*>(result) + num_bytes, kValgrindRedZoneBytes);
50 mirror::Object* ValgrindMallocSpace<S, A>::Alloc(Thread* self, size_t num_bytes, argument
53 void* obj_with_rdz = S::Alloc(self, num_bytes + 2 * kValgrindRedZoneBytes, bytes_allocated,
62 VALGRIND_MAKE_MEM_NOACCESS(reinterpret_cast<byte*>(result) + num_bytes, kValgrindRedZoneBytes);
H A Drosalloc_space-inl.h50 inline mirror::Object* RosAllocSpace::AllocCommon(Thread* self, size_t num_bytes, argument
57 rosalloc_->Alloc<kThreadSafe>(self, num_bytes, &rosalloc_size));
H A 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,
H A Dbump_pointer_space.h36 typedef void(*WalkCallback)(void *start, void *end, size_t num_bytes, void* callback_arg);
48 // Allocate num_bytes, returns nullptr if the space is full.
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);
H A 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,
55 return AllocNonvirtual(self, num_bytes, bytes_allocated, usable_size);
77 mirror::Object* AllocNonvirtual(Thread* self, size_t num_bytes, size_t* bytes_allocated,
95 // in use, indicated by num_bytes equaling zero.
136 mirror::Object* AllocWithoutGrowthLocked(Thread* self, size_t num_bytes, size_t* bytes_allocated,
H A Dmalloc_space.h50 typedef void(*WalkCallback)(void *start, void *end, size_t num_bytes, void* callback_arg);
56 // Allocate num_bytes allowing the underlying space to grow.
57 virtual mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes,
59 // Allocate num_bytes without allowing the underlying space to grow.
60 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
82 // in use, indicated by num_bytes equaling zero.
H A Dlarge_object_space.cc40 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
43 LargeObjectMapSpace::Alloc(self, num_bytes + kValgrindRedZoneBytes * 2, bytes_allocated,
48 VALGRIND_MAKE_MEM_NOACCESS(reinterpret_cast<byte*>(object_without_rdz) + num_bytes,
51 *usable_size = num_bytes; // Since we have redzones, shrink the usable size.
110 mirror::Object* LargeObjectMapSpace::Alloc(Thread* self, size_t num_bytes, argument
113 MemMap* mem_map = MemMap::MapAnonymous("large object space allocation", NULL, num_bytes,
409 mirror::Object* FreeListSpace::Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, argument
412 const size_t allocation_size = RoundUp(num_bytes, kAlignment);
417 // Find the smallest chunk at least num_bytes in size.
H A Ddlmalloc_space.cc128 mirror::Object* DlMallocSpace::AllocWithGrowth(Thread* self, size_t num_bytes, argument
137 result = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size);
144 memset(result, 0, num_bytes);
247 void DlMallocSpace::Walk(void(*callback)(void *start, void *end, size_t num_bytes, void* callback_arg), argument
H A Dzygote_space.h48 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
H A Drosalloc_space.cc146 mirror::Object* RosAllocSpace::AllocWithGrowth(Thread* self, size_t num_bytes, argument
155 result = AllocCommon(self, num_bytes, bytes_allocated, usable_size);
250 void RosAllocSpace::Walk(void(*callback)(void *start, void *end, size_t num_bytes, void* callback_arg), argument
291 void (*callback)(void *start, void *end, size_t num_bytes, void* callback_arg),
308 void RosAllocSpace::InspectAllRosAlloc(void (*callback)(void *start, void *end, size_t num_bytes, void* callback_arg),
H A Dspace.h195 // Allocate num_bytes without allowing growth. If the allocation
197 // actually allocated bytes which is >= num_bytes.
199 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,
206 return Alloc(self, num_bytes, bytes_allocated, usable_size);
H A 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,
H A Dzygote_space.cc78 mirror::Object* ZygoteSpace::Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, argument
/art/runtime/mirror/
H A Dart_field.cc45 void ArtField::SetOffset(MemberOffset num_bytes) { argument
51 DCHECK_ALIGNED(num_bytes.Uint32Value(), 8);
55 SetField32<false>(OFFSET_OF_OBJECT_MEMBER(ArtField, offset_), num_bytes.Uint32Value());
H A Dobject.cc71 size_t num_bytes) {
77 memcpy(dst_bytes + offset, src_bytes + offset, num_bytes - offset);
105 explicit CopyObjectVisitor(Thread* self, Handle<Object>* orig, size_t num_bytes) argument
106 : self_(self), orig_(orig), num_bytes_(num_bytes) {
127 size_t num_bytes = SizeOf(); local
131 CopyObjectVisitor visitor(self, &this_object, num_bytes);
133 copy = heap->AllocObject<true>(self, GetClass(), num_bytes, visitor);
135 copy = heap->AllocNonMovableObject<true>(self, GetClass(), num_bytes, visitor);
70 CopyObject(Thread* self, mirror::Object* dest, mirror::Object* src, size_t num_bytes) argument
H A Dart_field.h95 void SetOffset(MemberOffset num_bytes) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
H A Dobject.h400 size_t num_bytes)
/art/runtime/gc/collector/
H A Dgarbage_collector.h37 ObjectBytePair(uint64_t num_objects = 0, int64_t num_bytes = 0)
38 : objects(num_objects), bytes(num_bytes) {}
/art/runtime/gc/
H A Dheap.h175 mirror::Object* AllocObject(Thread* self, mirror::Class* klass, size_t num_bytes,
178 return AllocObjectWithAllocator<kInstrumented, true>(self, klass, num_bytes,
184 mirror::Object* AllocNonMovableObject(Thread* self, mirror::Class* klass, size_t num_bytes,
187 return AllocObjectWithAllocator<kInstrumented, true>(self, klass, num_bytes,
652 mirror::Object* AllocateInternalWithGc(Thread* self, AllocatorType allocator, size_t num_bytes,

Completed in 136 milliseconds