Lines Matching refs:num_bytes
28 inline mirror::Object* BumpPointerSpace::Alloc(Thread*, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
31 num_bytes = RoundUp(num_bytes, kAlignment); in Alloc()
32 mirror::Object* ret = AllocNonvirtual(num_bytes); in Alloc()
34 *bytes_allocated = num_bytes; in Alloc()
36 *usable_size = num_bytes; in Alloc()
38 *bytes_tl_bulk_allocated = num_bytes; in Alloc()
43 inline mirror::Object* BumpPointerSpace::AllocThreadUnsafe(Thread* self, size_t num_bytes, in AllocThreadUnsafe() argument
48 num_bytes = RoundUp(num_bytes, kAlignment); in AllocThreadUnsafe()
50 if (end + num_bytes > growth_end_) { in AllocThreadUnsafe()
54 end_.store(end + num_bytes, std::memory_order_relaxed); in AllocThreadUnsafe()
55 *bytes_allocated = num_bytes; in AllocThreadUnsafe()
59 bytes_allocated_.store(bytes_allocated_.load(std::memory_order_relaxed) + num_bytes, in AllocThreadUnsafe()
62 *usable_size = num_bytes; in AllocThreadUnsafe()
64 *bytes_tl_bulk_allocated = num_bytes; in AllocThreadUnsafe()
68 inline mirror::Object* BumpPointerSpace::AllocNonvirtualWithoutAccounting(size_t num_bytes) { in AllocNonvirtualWithoutAccounting() argument
69 DCHECK_ALIGNED(num_bytes, kAlignment); in AllocNonvirtualWithoutAccounting()
74 new_end = old_end + num_bytes; in AllocNonvirtualWithoutAccounting()
83 inline mirror::Object* BumpPointerSpace::AllocNonvirtual(size_t num_bytes) { in AllocNonvirtual() argument
84 mirror::Object* ret = AllocNonvirtualWithoutAccounting(num_bytes); in AllocNonvirtual()
87 bytes_allocated_.fetch_add(num_bytes, std::memory_order_relaxed); in AllocNonvirtual()