Home | History | Annotate | Download | only in space

Lines Matching full:num_bytes

27 inline mirror::Object* BumpPointerSpace::Alloc(Thread*, size_t num_bytes, size_t* bytes_allocated,
30 num_bytes = RoundUp(num_bytes, kAlignment);
31 mirror::Object* ret = AllocNonvirtual(num_bytes);
33 *bytes_allocated = num_bytes;
35 *usable_size = num_bytes;
37 *bytes_tl_bulk_allocated = num_bytes;
42 inline mirror::Object* BumpPointerSpace::AllocThreadUnsafe(Thread* self, size_t num_bytes,
47 num_bytes = RoundUp(num_bytes, kAlignment);
49 if (end + num_bytes > growth_end_) {
53 end_.StoreRelaxed(end + num_bytes);
54 *bytes_allocated = num_bytes;
57 bytes_allocated_.StoreRelaxed(bytes_allocated_.LoadRelaxed() + num_bytes);
59 *usable_size = num_bytes;
61 *bytes_tl_bulk_allocated = num_bytes;
65 inline mirror::Object* BumpPointerSpace::AllocNonvirtualWithoutAccounting(size_t num_bytes) {
66 DCHECK_ALIGNED(num_bytes, kAlignment);
71 new_end = old_end + num_bytes;
80 inline mirror::Object* BumpPointerSpace::AllocNonvirtual(size_t num_bytes) {
81 mirror::Object* ret = AllocNonvirtualWithoutAccounting(num_bytes);
84 bytes_allocated_.FetchAndAddSequentiallyConsistent(num_bytes);
91 size_t num_bytes = obj->SizeOf();
93 *usable_size = RoundUp(num_bytes, kAlignment);
95 return num_bytes;