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.cc156 const size_t allocation_size = mem_map->BaseSize(); local
159 uint8_t* obj_end = reinterpret_cast<uint8_t*>(obj) + allocation_size;
163 *bytes_allocated = allocation_size;
165 *usable_size = allocation_size;
168 *bytes_tl_bulk_allocated = allocation_size;
169 num_bytes_allocated_ += allocation_size;
170 total_bytes_allocated_ += allocation_size;
201 size_t allocation_size = map_size; local
202 num_bytes_allocated_ -= allocation_size;
206 return allocation_size;
416 const size_t allocation_size = info->ByteSize(); local
482 const size_t allocation_size = RoundUp(num_bytes, kAlignment); local
[all...]
H A Dspace_test.h208 size_t allocation_size = space->AllocationSize(object.Get(), nullptr); local
209 EXPECT_EQ(bytes_allocated, allocation_size);
211 EXPECT_GE(allocation_size, static_cast<size_t>(object_size));
213 EXPECT_GE(allocation_size, 8u);
216 bytes_tl_bulk_allocated >= allocation_size);
217 amount_allocated += allocation_size;
265 size_t allocation_size = space->AllocationSize(object, nullptr); local
267 EXPECT_GE(allocation_size, static_cast<size_t>(object_size));
269 EXPECT_GE(allocation_size, 8u);
273 amount_allocated -= allocation_size;
[all...]
H A Dlarge_object_space_test.cc53 size_t allocation_size = 0; local
55 mirror::Object* obj = los->Alloc(self, request_size, &allocation_size, nullptr,
58 ASSERT_EQ(allocation_size, los->AllocationSize(obj, nullptr));
59 ASSERT_GE(allocation_size, request_size);
60 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.h66 // and DlMalloc (allocation_size = (usable_size == num_bytes) + 4, 4 is management)
202 size_t allocation_size = AllocationSize(ptr, &usable_size); local
206 // e.g., whether there's data in the allocation_size (and usable_size can't be trusted).
208 MEMORY_TOOL_MAKE_UNDEFINED(obj_with_rdz, allocation_size);
/art/runtime/base/
H A Dscoped_arena_allocator.cc57 size_t allocation_size = std::max(Arena::kDefaultSize, rounded_bytes); local
59 top_arena_ = bottom_arena_ = stats_and_pool_.pool->AllocArena(allocation_size);
61 } else if (top_arena_->next_ != nullptr && top_arena_->next_->Size() >= allocation_size) {
65 top_arena_->next_ = stats_and_pool_.pool->AllocArena(allocation_size);

Completed in 97 milliseconds