Home | History | Annotate | Download | only in space

Lines Matching full:num_bytes

26 inline mirror::Object* RegionSpace::Alloc(Thread*, size_t num_bytes, size_t* bytes_allocated,
29 num_bytes = RoundUp(num_bytes, kAlignment);
30 return AllocNonvirtual<false>(num_bytes, bytes_allocated, usable_size,
34 inline mirror::Object* RegionSpace::AllocThreadUnsafe(Thread* self, size_t num_bytes,
39 return Alloc(self, num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated);
43 inline mirror::Object* RegionSpace::AllocNonvirtual(size_t num_bytes, size_t* bytes_allocated,
46 DCHECK_ALIGNED(num_bytes, kAlignment);
48 if (LIKELY(num_bytes <= kRegionSize)) {
51 obj = current_region_->Alloc(num_bytes, bytes_allocated, usable_size,
55 obj = evac_region_->Alloc(num_bytes, bytes_allocated, usable_size,
64 obj = current_region_->Alloc(num_bytes, bytes_allocated, usable_size,
67 obj = evac_region_->Alloc(num_bytes, bytes_allocated, usable_size,
84 obj = r->Alloc(num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated);
96 obj = r->Alloc(num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated);
105 obj = AllocLarge<kForEvac>(num_bytes, bytes_allocated, usable_size,
114 inline mirror::Object* RegionSpace::Region::Alloc(size_t num_bytes, size_t* bytes_allocated,
118 DCHECK_ALIGNED(num_bytes, kAlignment);
124 new_top = old_top + num_bytes;
133 *bytes_allocated = num_bytes;
135 *usable_size = num_bytes;
137 *bytes_tl_bulk_allocated = num_bytes;
142 size_t num_bytes = obj->SizeOf();
144 if (LIKELY(num_bytes <= kRegionSize)) {
146 *usable_size = RoundUp(num_bytes, kAlignment);
149 *usable_size = RoundUp(num_bytes, kRegionSize);
152 return num_bytes;
265 mirror::Object* RegionSpace::AllocLarge(size_t num_bytes, size_t* bytes_allocated,
268 DCHECK_ALIGNED(num_bytes, kAlignment);
269 DCHECK_GT(num_bytes, kRegionSize);
270 size_t num_regs = RoundUp(num_bytes, kRegionSize) / kRegionSize;
272 DCHECK_LT((num_regs - 1) * kRegionSize, num_bytes);
273 DCHECK_LE(num_bytes, num_regs * kRegionSize);
303 first_reg->SetTop(first_reg->Begin() + num_bytes);
310 *bytes_allocated = num_bytes;
314 *bytes_tl_bulk_allocated = num_bytes;