Searched refs:alloc_size (Results 1 - 10 of 10) sorted by relevance

/art/runtime/gc/
H A Dheap-inl.h223 size_t alloc_size, size_t* bytes_allocated,
228 UNLIKELY(IsOutOfMemoryOnAllocation<kGrow>(allocator_type, alloc_size))) {
235 alloc_size = RoundUp(alloc_size, space::BumpPointerSpace::kAlignment);
236 ret = bump_pointer_space_->AllocNonvirtual(alloc_size);
238 *bytes_allocated = alloc_size;
239 *usable_size = alloc_size;
240 *bytes_tl_bulk_allocated = alloc_size;
247 size_t max_bytes_tl_bulk_allocated = rosalloc_space_->MaxBytesBulkAllocatedFor(alloc_size);
252 ret = rosalloc_space_->Alloc(self, alloc_size, bytes_allocate
222 TryToAllocate(Thread* self, AllocatorType allocator_type, size_t alloc_size, size_t* bytes_allocated, size_t* usable_size, size_t* bytes_tl_bulk_allocated) argument
405 IsOutOfMemoryOnAllocation(AllocatorType allocator_type, size_t alloc_size) argument
[all...]
H A Dheap.cc1497 size_t alloc_size, size_t* bytes_allocated,
1518 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated,
1532 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated,
1552 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated,
1561 mirror::Object* ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated,
1570 VLOG(gc) << "Forcing collection of SoftReferences for " << PrettySize(alloc_size)
1579 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, usable_size,
1595 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated,
1628 if (!IsOutOfMemoryOnAllocation<false>(allocator, alloc_size)) {
1640 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocate
1496 AllocateInternalWithGc(Thread* self, AllocatorType allocator, size_t alloc_size, size_t* bytes_allocated, size_t* usable_size, size_t* bytes_tl_bulk_allocated, mirror::Class** klass) argument
2135 size_t alloc_size = RoundUp(obj_size, kObjectAlignment); local
[all...]
H A Dheap.h767 size_t alloc_size, size_t* bytes_allocated,
776 ALWAYS_INLINE bool IsOutOfMemoryOnAllocation(AllocatorType allocator_type, size_t alloc_size);
/art/runtime/gc/collector/
H A Dconcurrent_copying.cc975 size_t alloc_size = RoundUp(obj_size, space::RegionSpace::kAlignment); local
976 collector_->region_space_->AddLiveBytes(ref, alloc_size);
1234 mirror::Object* ConcurrentCopying::AllocateInSkippedBlock(size_t alloc_size) { argument
1236 CHECK(IsAligned<space::RegionSpace::kAlignment>(alloc_size));
1240 auto it = skipped_blocks_map_.lower_bound(alloc_size);
1247 CHECK_GE(byte_size, alloc_size);
1248 if (byte_size > alloc_size && byte_size - alloc_size < min_object_size) {
1250 it = skipped_blocks_map_.lower_bound(alloc_size + min_object_size);
1255 CHECK(IsAligned<space::RegionSpace::kAlignment>(it->first - alloc_size));
[all...]
H A Dmark_compact.cc89 const size_t alloc_size = RoundUp(obj->SizeOf(), space::BumpPointerSpace::kAlignment); local
99 bump_pointer_ += alloc_size;
H A Dconcurrent_copying.h228 mirror::Object* AllocateInSkippedBlock(size_t alloc_size)
/art/runtime/gc/space/
H A Dlarge_object_space.cc208 size_t alloc_size = it->second.mem_map->BaseSize(); local
210 *usable_size = alloc_size;
212 return alloc_size;
385 size_t alloc_size = cur_info->ByteSize(); local
387 uint8_t* byte_end = byte_start + alloc_size;
388 callback(byte_start, byte_end, alloc_size, arg);
467 size_t alloc_size = info->ByteSize(); local
469 *usable_size = alloc_size;
471 return alloc_size;
H A Dlarge_object_space_test.cc123 size_t alloc_size, bytes_tl_bulk_allocated; local
124 mirror::Object* ptr = los_->Alloc(self, size_, &alloc_size, nullptr,
H A Dspace_test.h441 size_t alloc_size; local
443 alloc_size = object_size;
445 alloc_size = test_rand(&rand_seed) % static_cast<size_t>(-object_size);
448 if (alloc_size < size_of_zero_length_byte_array) {
449 alloc_size = size_of_zero_length_byte_array;
457 object.Assign(Alloc(space, self, alloc_size, &bytes_allocated, nullptr,
460 object.Assign(AllocWithGrowth(space, self, alloc_size, &bytes_allocated, nullptr,
H A Dregion_space.h211 void AddLiveBytes(mirror::Object* ref, size_t alloc_size) { argument
213 reg->AddLiveBytes(alloc_size);

Completed in 79 milliseconds