Searched refs:allocation_size (Results 1 - 7 of 7) sorted by relevance

/art/runtime/gc/space/
H A Ddlmalloc_space-inl.h65 size_t allocation_size = AllocationSizeNonvirtual(result, usable_size); local
67 *bytes_allocated = allocation_size;
68 *bytes_tl_bulk_allocated = allocation_size;
H A Dlarge_object_space.cc150 const size_t allocation_size = mem_map->BaseSize(); local
156 end_ = std::max(end_, reinterpret_cast<uint8_t*>(obj) + allocation_size);
158 *bytes_allocated = allocation_size;
160 *usable_size = allocation_size;
163 *bytes_tl_bulk_allocated = allocation_size;
164 num_bytes_allocated_ += allocation_size;
165 total_bytes_allocated_ += allocation_size;
196 size_t allocation_size = map_size; local
197 num_bytes_allocated_ -= allocation_size;
201 return allocation_size;
411 const size_t allocation_size = info->ByteSize(); local
477 const size_t allocation_size = RoundUp(num_bytes, kAlignment); local
[all...]
H A Dspace_test.h205 size_t allocation_size = space->AllocationSize(object.Get(), nullptr); local
206 EXPECT_EQ(bytes_allocated, allocation_size);
208 EXPECT_GE(allocation_size, static_cast<size_t>(object_size));
210 EXPECT_GE(allocation_size, 8u);
213 bytes_tl_bulk_allocated >= allocation_size);
214 amount_allocated += allocation_size;
262 size_t allocation_size = space->AllocationSize(object, nullptr); local
264 EXPECT_GE(allocation_size, static_cast<size_t>(object_size));
266 EXPECT_GE(allocation_size, 8u);
270 amount_allocated -= allocation_size;
[all...]
H A Dlarge_object_space_test.cc61 size_t allocation_size = 0; local
63 mirror::Object* obj = los->Alloc(self, request_size, &allocation_size, nullptr,
66 ASSERT_EQ(allocation_size, los->AllocationSize(obj, nullptr));
67 ASSERT_GE(allocation_size, request_size);
68 ASSERT_EQ(allocation_size, bytes_tl_bulk_allocated);
H A Dspace_create_test.cc315 size_t allocation_size, usable_size, bytes_tl_bulk_allocated; local
320 &allocation_size,
325 EXPECT_EQ(allocation_size, space->AllocationSize(lots_of_objects[i], &computed_usable_size));
328 bytes_tl_bulk_allocated >= allocation_size);
336 size_t allocation_size, usable_size, bytes_tl_bulk_allocated; local
340 &allocation_size,
345 EXPECT_EQ(allocation_size, space->AllocationSize(lots_of_objects[i], &computed_usable_size));
348 bytes_tl_bulk_allocated >= allocation_size);
H A Dmemory_tool_malloc_space-inl.h68 // and DlMalloc (allocation_size = (usable_size == num_bytes) + 4, 4 is management)
204 size_t allocation_size = AllocationSize(ptr, &usable_size); local
208 // e.g., whether there's data in the allocation_size (and usable_size can't be trusted).
210 MEMORY_TOOL_MAKE_UNDEFINED(obj_with_rdz, allocation_size);
/art/runtime/base/
H A Dscoped_arena_allocator.cc56 size_t allocation_size = std::max(arena_allocator::kArenaDefaultSize, rounded_bytes); local
58 top_arena_ = bottom_arena_ = stats_and_pool_.pool->AllocArena(allocation_size);
60 } else if (top_arena_->next_ != nullptr && top_arena_->next_->Size() >= allocation_size) {
64 top_arena_->next_ = stats_and_pool_.pool->AllocArena(allocation_size);

Completed in 279 milliseconds