/art/runtime/gc/ |
H A D | heap-inl.h | 223 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 D | heap.cc | 1497 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 D | heap.h | 767 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 D | concurrent_copying.cc | 975 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 D | mark_compact.cc | 89 const size_t alloc_size = RoundUp(obj->SizeOf(), space::BumpPointerSpace::kAlignment); local 99 bump_pointer_ += alloc_size;
|
H A D | concurrent_copying.h | 228 mirror::Object* AllocateInSkippedBlock(size_t alloc_size)
|
/art/runtime/gc/space/ |
H A D | large_object_space.cc | 208 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 D | large_object_space_test.cc | 123 size_t alloc_size, bytes_tl_bulk_allocated; local 124 mirror::Object* ptr = los_->Alloc(self, size_, &alloc_size, nullptr,
|
H A D | space_test.h | 441 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 D | region_space.h | 211 void AddLiveBytes(mirror::Object* ref, size_t alloc_size) { argument 213 reg->AddLiveBytes(alloc_size);
|